diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-03-05 11:58:12 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-03-05 11:58:12 +0000 |
commit | f288bd1ab7b748fe4f9d2c884e9aeae85bc9dfc2 (patch) | |
tree | 895388442aa8c0b91532ae768f98fe220688aa61 /lib | |
parent | 7b2b6ab494ae380ee70b759135e5b1c47785b9f9 (diff) | |
download | FreeBSD-src-f288bd1ab7b748fe4f9d2c884e9aeae85bc9dfc2.zip FreeBSD-src-f288bd1ab7b748fe4f9d2c884e9aeae85bc9dfc2.tar.gz |
Use the right format string for printing ULONG_MAX.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/pw_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/pw_scan.c b/lib/libc/gen/pw_scan.c index 3ecb9e0..a2eadba 100644 --- a/lib/libc/gen/pw_scan.c +++ b/lib/libc/gen/pw_scan.c @@ -103,7 +103,7 @@ __pw_scan(char *bp, struct passwd *pw, int flags) id = strtoul(p, (char **)NULL, 10); if (errno == ERANGE) { if (flags & _PWSCAN_WARN) - warnx("%s > max uid value (%u)", p, ULONG_MAX); + warnx("%s > max uid value (%lu)", p, ULONG_MAX); return (0); } if (root && id) { @@ -123,7 +123,7 @@ __pw_scan(char *bp, struct passwd *pw, int flags) id = strtoul(p, (char **)NULL, 10); if (errno == ERANGE) { if (flags & _PWSCAN_WARN) - warnx("%s > max gid value (%u)", p, ULONG_MAX); + warnx("%s > max gid value (%lu)", p, ULONG_MAX); return (0); } if (flags & _PWSCAN_WARN && pw_big_ids_warning && id > USHRT_MAX) { |