diff options
author | 2008-09-08 20:42:24 +0000 | |
---|---|---|
committer | 2008-09-08 20:42:24 +0000 | |
commit | 8c4fa846922bd498b678afe4750c9fefbf4eb139 (patch) | |
tree | b995b0422db417c3b6130f52a157301f655690f4 | |
parent | - add descriptions for %F, and infinity/not-a-number from printf(3) (diff) | |
download | wireguard-openbsd-8c4fa846922bd498b678afe4750c9fefbf4eb139.tar.xz wireguard-openbsd-8c4fa846922bd498b678afe4750c9fefbf4eb139.zip |
clean warnings on all architectures
-rw-r--r-- | usr.sbin/crunchgen/elf_hide.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/crunchgen/elf_hide.c b/usr.sbin/crunchgen/elf_hide.c index b52a7757b07..148a3946ff1 100644 --- a/usr.sbin/crunchgen/elf_hide.c +++ b/usr.sbin/crunchgen/elf_hide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf_hide.c,v 1.1 2008/08/22 15:18:55 deraadt Exp $ */ +/* $OpenBSD: elf_hide.c,v 1.2 2008/09/08 20:42:24 deraadt Exp $ */ /* * Copyright (c) 1997 Dale Rahn. @@ -225,8 +225,8 @@ dump_symtab(Elf_Shdr * symsect, Elf_Sym * symtab, int symtabsize) printf("symbol %d:\n", i); printf("st_name %x \"%s\"\n", psymtab->st_name, get_str(psymtab->st_name)); - printf("st_value %x\n", psymtab->st_value); - printf("st_size %x\n", psymtab->st_size); + printf("st_value %llx\n", (unsigned long long)psymtab->st_value); + printf("st_size %llx\n", (unsigned long long)psymtab->st_size); printf("st_info %x\n", psymtab->st_info); printf("st_other %x\n", psymtab->st_other); printf("st_shndx %x\n", psymtab->st_shndx); @@ -304,7 +304,9 @@ hide_sym(Elf_Ehdr * ehdr, Elf_Shdr * symsect, Elf_Sym * symtab, int symtabsize, int symtabsecnum) { int i; +#ifndef __mips__ unsigned char info; +#endif Elf_Sym *psymtab; #ifdef __mips__ |