changeset 4962:7d8d82d0e5e5 HEAD

s/swab/swab_uint32/. swab() already exists in libc and it may conflict.
author Timo Sirainen <tss@iki.fi>
date Wed, 27 Dec 2006 09:59:56 +0200
parents e13de4a0bf90
children b13c7888563c
files src/lib-otp/otp-hash.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-otp/otp-hash.c	Fri Dec 22 23:46:18 2006 +0200
+++ b/src/lib-otp/otp-hash.c	Wed Dec 27 09:59:56 2006 +0200
@@ -53,7 +53,7 @@
 /*
  * Sometimes I simply can't look at code generated by gcc.
  */
-static inline uint32_t swab(uint32_t val)
+static inline uint32_t swab_uint32(uint32_t val)
 {
 #if defined(__GNUC__) && defined(__i386__)
 	asm("xchgb %b0, %h0\n"
@@ -74,8 +74,8 @@
 
 	sha1_result(ctx, tmp);
 
-	*p++ = swab(tmp[0] ^ tmp[2] ^ tmp[4]);
-	*p = swab(tmp[1] ^ tmp[3]);
+	*p++ = swab_uint32(tmp[0] ^ tmp[2] ^ tmp[4]);
+	*p = swab_uint32(tmp[1] ^ tmp[3]);
 }