summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-01 05:53:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-01 05:53:30 +0000
commit9da13ff169f52622b6f7e316a305d2e0a276fa9a (patch)
treedf6134244f9501e44c1570ebc97e0242080d099a /lib/libc/gen
parent3ac414237561174ba770356efa635381e6bf20f9 (diff)
-Wall cleanliness
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/elf_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/elf_hash.c b/lib/libc/gen/elf_hash.c
index f09b970b516..ece43adb857 100644
--- a/lib/libc/gen/elf_hash.c
+++ b/lib/libc/gen/elf_hash.c
@@ -26,7 +26,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: elf_hash.c,v 1.4 1997/06/29 05:46:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: elf_hash.c,v 1.5 1997/07/01 05:53:29 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -56,7 +56,7 @@ elf_hash(name)
while (*name) {
h = (h << 4) + *name++;
- if (g = h & 0xf0000000)
+ if ((g = h & 0xf0000000))
h ^= g >> 24;
h &= ~g;
}