From f281a955e9fa154296e7ff7620005114808c58d9 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 10 Feb 2023 10:54:47 -0300 Subject: nscd: Remove _STRING_ARCH_unaligned usage It only adds a small overhead for unaligned inputs (which should not be common) and unify the code. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Wilco Dijkstra --- nscd/nscd_gethst_r.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'nscd/nscd_gethst_r.c') diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c index 7950ed695c..153194ad04 100644 --- a/nscd/nscd_gethst_r.c +++ b/nscd/nscd_gethst_r.c @@ -185,7 +185,6 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, goto out; } -#if !_STRING_ARCH_unaligned /* The aliases_len array in the mapped database might very well be unaligned. We will access it word-wise so on platforms which do not tolerate unaligned accesses we @@ -199,7 +198,6 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, hst_resp.h_aliases_cnt * sizeof (uint32_t)); } -#endif if (type != GETHOSTBYADDR && type != GETHOSTBYNAME) { if (hst_resp.h_length == INADDRSZ) -- cgit 1.4.1