diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-02-06 23:22:00 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-02-06 23:22:00 +0000 |
commit | 3318608864fcb14a5c03e4cf97495dbd6d23bfd7 (patch) | |
tree | e4103eeca8e2180f8253c294c942f6aa1de9c6f2 /usr.bin/nm | |
parent | 80c4a98d1fdcc445a241d9895e7b7e684aacec71 (diff) |
SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@
Diffstat (limited to 'usr.bin/nm')
-rw-r--r-- | usr.bin/nm/elf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nm/elf.c b/usr.bin/nm/elf.c index f2ab39d63fd..4cc20617983 100644 --- a/usr.bin/nm/elf.c +++ b/usr.bin/nm/elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf.c,v 1.25 2015/01/19 20:25:36 miod Exp $ */ +/* $OpenBSD: elf.c,v 1.26 2015/02/06 23:21:59 millert Exp $ */ /* * Copyright (c) 2003 Michael Shalayeff @@ -32,10 +32,10 @@ #include <elf_abi.h> #include <errno.h> #include <err.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <limits.h> #include <ctype.h> #include "elfuncs.h" #include "util.h" @@ -454,7 +454,7 @@ elf_symloadx(const char *name, FILE *fp, off_t foff, Elf_Ehdr *eh, for (i = 0; i < eh->e_shnum; i++) { if (!strcmp(shstr + shdr[i].sh_name, strtab)) { *pstabsize = shdr[i].sh_size; - if (*pstabsize > SIZE_T_MAX) { + if (*pstabsize > SIZE_MAX) { warnx("%s: corrupt file", name); return (1); } |