diff options
author | David Malone <dwmalone@FreeBSD.org> | 2001-03-05 11:58:12 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2001-03-05 11:58:12 +0000 |
commit | 9369d758bb84ee2649da453e9bf1302525198b99 (patch) | |
tree | 11da1e67b61e23cc2af03e3408b2b0da31ad5dad /libc | |
parent | ddcd095eb0a87f2453cae419798ed06b1a413af6 (diff) | |
download | pw-darwin-9369d758bb84ee2649da453e9bf1302525198b99.tar.gz pw-darwin-9369d758bb84ee2649da453e9bf1302525198b99.tar.zst pw-darwin-9369d758bb84ee2649da453e9bf1302525198b99.zip |
Use the right format string for printing ULONG_MAX.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/gen/pw_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/gen/pw_scan.c b/libc/gen/pw_scan.c index 3ecb9e0..a2eadba 100644 --- a/libc/gen/pw_scan.c +++ b/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) { |