mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(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:
parent
f3bcc33f91
commit
0bac703a59
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user