diff options
author | 2015-02-06 23:21:58 +0000 | |
---|---|---|
committer | 2015-02-06 23:21:58 +0000 | |
commit | 4239b8225fa4f64aecb5a0fe486abd01f9e64ae2 (patch) | |
tree | bc2da4d9ac9052268d9b8328f3ed7de2e42e1e1f /lib/libc/gen/getusershell.c | |
parent | list iwm(4) in pci(4); prodded by jmc (diff) | |
download | wireguard-openbsd-4239b8225fa4f64aecb5a0fe486abd01f9e64ae2.tar.xz wireguard-openbsd-4239b8225fa4f64aecb5a0fe486abd01f9e64ae2.zip |
SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@
Diffstat (limited to 'lib/libc/gen/getusershell.c')
-rw-r--r-- | lib/libc/gen/getusershell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/getusershell.c b/lib/libc/gen/getusershell.c index c3517b19e06..0bcbf0b0464 100644 --- a/lib/libc/gen/getusershell.c +++ b/lib/libc/gen/getusershell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getusershell.c,v 1.14 2014/09/15 06:15:48 guenther Exp $ */ +/* $OpenBSD: getusershell.c,v 1.15 2015/02/06 23:21:58 millert Exp $ */ /* * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. @@ -33,6 +33,7 @@ #include <ctype.h> #include <limits.h> #include <paths.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -101,7 +102,7 @@ initshells(void) (void)fclose(fp); return (okshells); } - if (statb.st_size > SIZE_T_MAX) { + if (statb.st_size > SIZE_MAX) { (void)fclose(fp); return (okshells); } |