common: Fix compiler warning when built with --disable-userns

tingping/wmclass
Alexander Larsson 2015-12-15 08:46:53 +01:00
parent c382cfc212
commit 5b21b48084
1 changed files with 2 additions and 0 deletions

View File

@ -1189,6 +1189,7 @@ copy_file (const char *src_path, const char *dst_path, mode_t mode)
return res;
}
#ifndef DISABLE_USERNS
static bool
write_file (const char *path, const char *content)
{
@ -1210,6 +1211,7 @@ write_file (const char *path, const char *content)
return res;
}
#endif
static bool
create_file (const char *path, mode_t mode, const char *content)