]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
utils: shut up compiler
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 16 Mar 2020 17:55:09 +0000 (18:55 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 16 Mar 2020 21:16:45 +0000 (17:16 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/utils.h

index 8ac6676389ee65e3de8db97be0d10ae1bbbc88ed..f55dc95196518c2428bd09e3eece397423f52704 100644 (file)
@@ -34,9 +34,7 @@
 
 struct file_info;
 
-__attribute__((format_arg(4))) extern char *must_strcat(char **src, size_t *sz,
-                                                       size_t *asz,
-                                                       const char *format, ...);
+__attribute__((__format__(__printf__, 4, 5))) extern char *must_strcat(char **src, size_t *sz, size_t *asz, const char *format, ...);
 extern bool is_shared_pidns(pid_t pid);
 extern int preserve_ns(const int pid, const char *ns);
 extern void do_release_file_info(struct fuse_file_info *fi);