summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-05 16:54:03 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-05 16:54:03 +0000
commit61f0322ef701d3df5613ce2fed40860ca5312e3e (patch)
treeea28fb442d07300ee3dfc24afed0dc35f0694533 /usr.bin
parentcb1557c30ccf75e03417493c8a59435f93e5f960 (diff)
remove warning.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pmdb/elf_syms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/pmdb/elf_syms.c b/usr.bin/pmdb/elf_syms.c
index 492551c5d65..986cca41c84 100644
--- a/usr.bin/pmdb/elf_syms.c
+++ b/usr.bin/pmdb/elf_syms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf_syms.c,v 1.4 2002/03/19 21:17:52 fgsch Exp $ */
+/* $OpenBSD: elf_syms.c,v 1.5 2002/06/05 16:54:02 fgsch Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -89,12 +89,12 @@ sym_check_elf(const char *name, struct pstate *ps)
error = 1;
#ifndef __NetBSD__
- if (!error && !IS_ELF(ehdr) ||
+ if (!error && (!IS_ELF(ehdr) ||
ehdr.e_ident[EI_CLASS] != ELF_TARG_CLASS ||
ehdr.e_ident[EI_DATA] != ELF_TARG_DATA ||
ehdr.e_ident[EI_VERSION] != ELF_TARG_VER ||
ehdr.e_machine != ELF_TARG_MACH ||
- ehdr.e_version != ELF_TARG_VER)
+ ehdr.e_version != ELF_TARG_VER))
error = 1;
#endif