From 0bac703a59a33b06a1a16cdaa38f6331391ff74c Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sat, 17 Sep 2016 12:06:36 +0000 Subject: [PATCH] (ftpfs_chmod): cleanup -Wformat-signedness warning. ftpfs.c: In function 'ftpfs_chmod': ftpfs.c:2029:52: error: format '%o' expects argument of type 'unsigned int', but argument 4 has type 'int' [-Werror=format=] g_snprintf (buf, sizeof (buf), "SITE CHMOD %4.4o /%%s", (int) (mode & 07777)); ^ Signed-off-by: Andreas Mohr Signed-off-by: Andrew Borodin --- src/vfs/ftpfs/ftpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c index 4b993dfee..d90b219e8 100644 --- a/src/vfs/ftpfs/ftpfs.c +++ b/src/vfs/ftpfs/ftpfs.c @@ -2026,7 +2026,7 @@ ftpfs_chmod (const vfs_path_t * vpath, mode_t mode) char buf[BUF_SMALL]; int ret; - g_snprintf (buf, sizeof (buf), "SITE CHMOD %4.4o /%%s", (int) (mode & 07777)); + g_snprintf (buf, sizeof (buf), "SITE CHMOD %4.4o /%%s", (unsigned int) (mode & 07777)); ret = ftpfs_send_command (vpath, buf, OPT_FLUSH);