File: gnupg-md5.diff

package info (click to toggle)
integrit 3.02.00-11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,480 kB
  • ctags: 559
  • sloc: ansic: 4,204; makefile: 385; sh: 306; perl: 224
file content (20 lines) | stat: -rw-r--r-- 846 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
* taken from gnupg_1.2.2-1; fixes build failure on big endian.

Index: gnupg/md5.c
===================================================================
RCS file: /var/lib/cvs/integrit/gnupg/md5.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 md5.c
--- gnupg/md5.c	24 May 2003 16:59:03 -0000	1.1.1.1
+++ gnupg/md5.c	24 May 2003 22:19:10 -0000
@@ -330,8 +330,8 @@
 
     p = hd->buf;
   #ifdef BIG_ENDIAN_HOST
-    #define X(a) do { *p++ = hd->##a	  ; *p++ = hd->##a >> 8;      \
-		      *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
+    #define X(a) do { *p++ = hd-> a	  ; *p++ = hd-> a >> 8;      \
+		      *p++ = hd-> a >> 16; *p++ = hd-> a >> 24; } while(0)
   #else /* little endian */
     /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
     /* Unixware's cpp doesn't like the above construct so we do it his way: