diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2003-05-24 09:30:41 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2003-05-24 09:30:41 +0000 |
commit | be13ccecacad15d48066ad8b53c970cc9394f13e (patch) | |
tree | 4cde6718ef24935cbdd4128fe55f8ce1912c67d8 /usr.bin/ssh/sftp-common.c | |
parent | 0d2746a20b816224274cc0261e8cf09427b52802 (diff) |
cast some types for printing; ok markus@
Diffstat (limited to 'usr.bin/ssh/sftp-common.c')
-rw-r--r-- | usr.bin/ssh/sftp-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sftp-common.c b/usr.bin/ssh/sftp-common.c index 31d41385bbd..5313b134dc4 100644 --- a/usr.bin/ssh/sftp-common.c +++ b/usr.bin/ssh/sftp-common.c @@ -24,7 +24,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sftp-common.c,v 1.8 2002/10/16 14:31:48 itojun Exp $"); +RCSID("$OpenBSD: sftp-common.c,v 1.9 2003/05/24 09:30:40 djm Exp $"); #include "buffer.h" #include "bufaux.h" @@ -206,8 +206,8 @@ ls_file(char *name, struct stat *st, int remote) tbuf[0] = '\0'; ulen = MAX(strlen(user), 8); glen = MAX(strlen(group), 8); - snprintf(buf, sizeof buf, "%s %3d %-*s %-*s %8llu %s %s", mode, - st->st_nlink, ulen, user, glen, group, + snprintf(buf, sizeof buf, "%s %3u %-*s %-*s %8llu %s %s", mode, + (u_int)st->st_nlink, ulen, user, glen, group, (unsigned long long)st->st_size, tbuf, name); return xstrdup(buf); } |