rtld: reindent and style(9) elf_hash()

In preparation for an upcoming change (D39517).

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2023-04-12 11:06:14 -04:00
parent 2ba2849c82
commit 87443cb6c6

View file

@ -1802,17 +1802,17 @@ donelist_check(DoneList *dlp, const Obj_Entry *obj)
unsigned long
elf_hash(const char *name)
{
const unsigned char *p = (const unsigned char *) name;
unsigned long h = 0;
unsigned long g;
const unsigned char *p = (const unsigned char *)name;
unsigned long h = 0;
unsigned long g;
while (*p != '\0') {
h = (h << 4) + *p++;
if ((g = h & 0xf0000000) != 0)
h ^= g >> 24;
h &= ~g;
}
return (h);
while (*p != '\0') {
h = (h << 4) + *p++;
if ((g = h & 0xf0000000) != 0)
h ^= g >> 24;
h &= ~g;
}
return (h);
}
/*