diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-26 15:37:35 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-04-09 15:05:36 -0500 |
commit | 27822ce67fbf7f2b204992a410e7da2e8c1e2607 (patch) | |
tree | 6acda311114ef0da18e825c4d26e0013c321a679 /crypt | |
parent | a88ddc902b804a6156f6e5e5feb979754a3e789a (diff) | |
download | glibc-27822ce67fbf7f2b204992a410e7da2e8c1e2607.tar.gz glibc-27822ce67fbf7f2b204992a410e7da2e8c1e2607.tar.xz glibc-27822ce67fbf7f2b204992a410e7da2e8c1e2607.zip |
Define _STRING_ARCH_unaligned unconditionally
This patch defines _STRING_ARCH_unaligned to 0 on default bits/string.h header to avoid undefined compiler warnings on platforms that do not define it. It also make adjustments in code where tests checked if macro existed or not.
Diffstat (limited to 'crypt')
-rw-r--r-- | crypt/sha256.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt/sha256.c b/crypt/sha256.c index a5df83e23a..4e1b504c99 100644 --- a/crypt/sha256.c +++ b/crypt/sha256.c @@ -125,7 +125,7 @@ __sha256_finish_ctx (ctx, resbuf) memcpy (&ctx->buffer[bytes], fillbuf, pad); /* Put the 64-bit file length in *bits* at the end of the buffer. */ -#ifdef _STRING_ARCH_unaligned +#if _STRING_ARCH_unaligned ctx->buffer64[(bytes + pad) / 8] = SWAP64 (ctx->total64 << 3); #else ctx->buffer32[(bytes + pad + 4) / 4] = SWAP (ctx->total[TOTAL64_low] << 3); |