summaryrefslogtreecommitdiff
path: root/security/aide06/patches/patch-ac
blob: a861fc58796b2e96d8941dc0f1066a5ccea1e7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ac,v 1.1 2003/12/19 12:34:30 agc Exp $

--- src/crypt/tiger.c	2003/12/19 12:27:19	1.1
+++ src/crypt/tiger.c	2003/12/19 12:29:41
@@ -844,12 +844,12 @@
 
     p = hd->buf;
   #ifdef BIG_ENDIAN_HOST
-    #define X(a) do { *(u64*)p = hd->##a ; p += 8; } while(0)
+    #define X(fld) do { *(u64*)p = hd->fld ; p += 8; } while(0)
   #else /* little endian */
-    #define X(a) do { *p++ = hd->##a >> 56; *p++ = hd->##a >> 48; \
-		      *p++ = hd->##a >> 40; *p++ = hd->##a >> 32; \
-		      *p++ = hd->##a >> 24; *p++ = hd->##a >> 16; \
-		      *p++ = hd->##a >>  8; *p++ = hd->##a; } while(0)
+    #define X(fld) do { *p++ = hd->fld >> 56; *p++ = hd->fld >> 48; \
+		      *p++ = hd->fld >> 40; *p++ = hd->fld >> 32; \
+		      *p++ = hd->fld >> 24; *p++ = hd->fld >> 16; \
+		      *p++ = hd->fld >>  8; *p++ = hd->fld; } while(0)
   #endif
     X(a);
     X(b);