aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/file.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 16:27:01 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 17:01:18 +0200
commitc34317dc2cbb1d636fd00bd201033acb1ae22016 (patch)
tree54a1a823562fa7453d8378bde19b45dd657e96e8 /src/file.c
parentserver: more logging (diff)
downloadcimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.tar.gz
cimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.zip
make compilers happier
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file.c b/src/file.c
index 0273e71..a1ebb6d 100644
--- a/src/file.c
+++ b/src/file.c
@@ -1,4 +1,5 @@
#include "file.h"
+#include "compiler.h"
#include "log.h"
#include <ftw.h>
@@ -7,7 +8,8 @@
#include <sys/stat.h>
#include <unistd.h>
-static int unlink_cb(const char *fpath, const struct stat *, int, struct FTW *)
+static int unlink_cb(const char *fpath, UNUSED const struct stat *sb, UNUSED int typeflag,
+ UNUSED struct FTW *ftwbuf)
{
int ret = 0;