Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
@@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "config_csync.h"
-#include <string.h>
-#include <time.h>
+#include <cstring>
+#include <ctime>
#include <sys/time.h>
-#include <stdio.h>
+#include <cstdio>
#define CSYNC_TEST 1
#include "csync_exclude.cpp"
@@ -18,7 +18,7 @@
#include "common/utility.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "torture.h"
static void check_csync_normalize_etag(void **state)
@@ -17,7 +17,7 @@
* License along with this library; if not, write to the Free Software
#include "c_string.h"
#include "c_utf8.h"
#include "common/filesystembase.h"
@@ -24,9 +24,9 @@
extern "C" {
#endif
-#include <stdarg.h>
-#include <stddef.h>
-#include <setjmp.h>
+#include <stdarg.h> // NOLINT sometimes compiled in C mode
+#include <stddef.h> // NOLINT sometimes compiled in C mode
+#include <setjmp.h> // NOLINT sometimes compiled in C mode
#include <cmocka.h>
@@ -20,8 +20,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <errno.h>
+#include <cerrno>
#include "csync_private.h"
#include "std/c_utf8.h"
@@ -20,9 +20,9 @@