git: 937d152b3e62 - stable/13 - rtld: reindent and style(9) elf_hash()

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Thu, 27 Apr 2023 18:20:10 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=937d152b3e62f936334887759798ebf5fc55e53e

commit 937d152b3e62f936334887759798ebf5fc55e53e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-04-12 15:06:14 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-04-27 17:05:17 +0000

    rtld: reindent and style(9) elf_hash()
    
    In preparation for an upcoming change (D39517).
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 87443cb6c669b51ceaa7f85db63191374477efc1)
---
 libexec/rtld-elf/rtld.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 30cb4b595b71..49685508d4dc 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -1843,17 +1843,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;
-
-    while (*p != '\0') {
-	h = (h << 4) + *p++;
-	if ((g = h & 0xf0000000) != 0)
-	    h ^= g >> 24;
-	h &= ~g;
-    }
-    return (h);
+	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);
 }
 
 /*