Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2023 18:20:10 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 937d152b3e62 - stable/13 - rtld: reindent and style(9) elf_hash()
Message-ID:  <202304271820.33RIKAa8068667@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304271820.33RIKAa8068667>