From 9369d758bb84ee2649da453e9bf1302525198b99 Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 5 Mar 2001 11:58:12 +0000 Subject: Use the right format string for printing ULONG_MAX. --- libc/gen/pw_scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc') 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) { -- cgit v1.2.3-56-ge451