Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/smbfs/lib/smb Since size_t is unsigned, better use (uns...
details: https://anonhg.NetBSD.org/src/rev/bcb2e3a817b6
branches: trunk
changeset: 543225:bcb2e3a817b6
user: martin <martin%NetBSD.org@localhost>
date: Wed Feb 19 19:15:28 2003 +0000
description:
Since size_t is unsigned, better use (unsigned long) and %lu to print
a size_t. Spotted by kleink.
diffstat:
dist/smbfs/lib/smb/rcfile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 59382868bf9f -r bcb2e3a817b6 dist/smbfs/lib/smb/rcfile.c
--- a/dist/smbfs/lib/smb/rcfile.c Wed Feb 19 19:04:27 2003 +0000
+++ b/dist/smbfs/lib/smb/rcfile.c Wed Feb 19 19:15:28 2003 +0000
@@ -344,7 +344,7 @@
if (error)
return error;
if (strlen(value) >= maxlen) {
- warnx("line too long for key '%s' in section '%s', max = %ld\n", key, section, (long)maxlen);
+ warnx("line too long for key '%s' in section '%s', max = %lu\n", key, section, (unsigned long)maxlen);
return EINVAL;
}
strcpy(dest, value);
Home |
Main Index |
Thread Index |
Old Index