diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-25 14:38:33 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-25 14:38:33 +1000 |
commit | 04bd8b0bcc92eca7304898ce35705e0f403514c1 (patch) | |
tree | a4bfa854b5bce1e1d4f6a2214bdc30f3b5611974 /sftp-common.c | |
parent | c11fe255ab45b8cf7783cedbcd688b00ed5308aa (diff) |
- djm@cvs.openbsd.org 2003/05/24 09:30:40
[authfile.c monitor.c sftp-common.c sshpty.c]
cast some types for printing; ok markus@
Diffstat (limited to 'sftp-common.c')
-rw-r--r-- | sftp-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-common.c b/sftp-common.c index 31d41385b..5313b134d 100644 --- a/sftp-common.c +++ b/sftp-common.c | |||
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "includes.h" | 26 | #include "includes.h" |
27 | RCSID("$OpenBSD: sftp-common.c,v 1.8 2002/10/16 14:31:48 itojun Exp $"); | 27 | RCSID("$OpenBSD: sftp-common.c,v 1.9 2003/05/24 09:30:40 djm Exp $"); |
28 | 28 | ||
29 | #include "buffer.h" | 29 | #include "buffer.h" |
30 | #include "bufaux.h" | 30 | #include "bufaux.h" |
@@ -206,8 +206,8 @@ ls_file(char *name, struct stat *st, int remote) | |||
206 | tbuf[0] = '\0'; | 206 | tbuf[0] = '\0'; |
207 | ulen = MAX(strlen(user), 8); | 207 | ulen = MAX(strlen(user), 8); |
208 | glen = MAX(strlen(group), 8); | 208 | glen = MAX(strlen(group), 8); |
209 | snprintf(buf, sizeof buf, "%s %3d %-*s %-*s %8llu %s %s", mode, | 209 | snprintf(buf, sizeof buf, "%s %3u %-*s %-*s %8llu %s %s", mode, |
210 | st->st_nlink, ulen, user, glen, group, | 210 | (u_int)st->st_nlink, ulen, user, glen, group, |
211 | (unsigned long long)st->st_size, tbuf, name); | 211 | (unsigned long long)st->st_size, tbuf, name); |
212 | return xstrdup(buf); | 212 | return xstrdup(buf); |
213 | } | 213 | } |