From 4afb3d702fd34c3bf78c7afae59ce8c700f2b525 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 9 Jun 1997 22:38:31 +0000 Subject: [PATCH] Remove some gcc-warnings. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1871 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asn1/hash.c b/lib/asn1/hash.c index 18cb7ebe3..537404d07 100644 --- a/lib/asn1/hash.c +++ b/lib/asn1/hash.c @@ -104,7 +104,7 @@ _hashtabdel(Hashtab * htab, void *ptr, int freep) if (h) { if (freep) free(h->ptr); - if (*(h->prev) = h->next) + if ((*(h->prev) = h->next)) h->next->prev = h->prev; free(h); return 0; @@ -167,7 +167,7 @@ hashjpw(const char *ss) for (; *s; ++s) { h = (h << TWELVE) + *s; - if (g = h & HIGH_BITS) + if ((g = h & HIGH_BITS)) h = (h ^ (g >> SEVENTYFIVE)) & ~HIGH_BITS; } return h;