summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-07-01 05:53:29 +0000
committermillert <millert@openbsd.org>1997-07-01 05:53:29 +0000
commit64290f8e02e491bebd0a7bed2af6f2a86409e82b (patch)
treeea684dfafd1d92c2790a401ab8f7db37487d4eb5
parentSome -Wall cleanliness. (diff)
downloadwireguard-openbsd-64290f8e02e491bebd0a7bed2af6f2a86409e82b.tar.xz
wireguard-openbsd-64290f8e02e491bebd0a7bed2af6f2a86409e82b.zip
-Wall cleanliness
-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;
}