Remove some gcc-warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1871 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -104,7 +104,7 @@ _hashtabdel(Hashtab * htab, void *ptr, int freep)
|
|||||||
if (h) {
|
if (h) {
|
||||||
if (freep)
|
if (freep)
|
||||||
free(h->ptr);
|
free(h->ptr);
|
||||||
if (*(h->prev) = h->next)
|
if ((*(h->prev) = h->next))
|
||||||
h->next->prev = h->prev;
|
h->next->prev = h->prev;
|
||||||
free(h);
|
free(h);
|
||||||
return 0;
|
return 0;
|
||||||
@@ -167,7 +167,7 @@ hashjpw(const char *ss)
|
|||||||
|
|
||||||
for (; *s; ++s) {
|
for (; *s; ++s) {
|
||||||
h = (h << TWELVE) + *s;
|
h = (h << TWELVE) + *s;
|
||||||
if (g = h & HIGH_BITS)
|
if ((g = h & HIGH_BITS))
|
||||||
h = (h ^ (g >> SEVENTYFIVE)) & ~HIGH_BITS;
|
h = (h ^ (g >> SEVENTYFIVE)) & ~HIGH_BITS;
|
||||||
}
|
}
|
||||||
return h;
|
return h;
|
||||||
|
Reference in New Issue
Block a user