(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 <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-09-17 12:06:36 +00:00 committed by Andrew Borodin
parent f3bcc33f91
commit 0bac703a59

View File

@ -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);