Skip to content

Commit

Permalink
Silenced warnings on unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gollux committed Jul 26, 2015
1 parent 33a3e78 commit 24c7c24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions isolate.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static int dir_exists(char *path)
}

static int rmtree_helper(const char *fpath, const struct stat *sb,
int typeflag, struct FTW *ftwbuf)
int typeflag UNUSED, struct FTW *ftwbuf UNUSED)
{
if (S_ISDIR(sb->st_mode))
{
Expand All @@ -284,8 +284,8 @@ rmtree(char *path)

static uid_t chown_uid;
static gid_t chown_gid;
static int chowntree_helper(const char *fpath, const struct stat *sb,
int typeflag, struct FTW *ftwbuf)
static int chowntree_helper(const char *fpath, const struct stat *sb UNUSED,
int typeflag UNUSED, struct FTW *ftwbuf UNUSED)
{
if (lchown(fpath, chown_uid, chown_gid) < 0)
die("Cannot chown %s: %m", fpath);
Expand Down

0 comments on commit 24c7c24

Please sign in to comment.