pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/aide06 Avoid some dodgy string pasting - make...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/083ccf18db88
branches:  trunk
changeset: 465018:083ccf18db88
user:      agc <agc%pkgsrc.org@localhost>
date:      Fri Dec 19 12:34:30 2003 +0000

description:
Avoid some dodgy string pasting - makes this compile with gcc3.

diffstat:

 security/aide06/distinfo         |   3 ++-
 security/aide06/patches/patch-ac |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r e27c430a8c69 -r 083ccf18db88 security/aide06/distinfo
--- a/security/aide06/distinfo  Fri Dec 19 12:26:12 2003 +0000
+++ b/security/aide06/distinfo  Fri Dec 19 12:34:30 2003 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/06/23 13:48:33 agc Exp $
+$NetBSD: distinfo,v 1.2 2003/12/19 12:34:30 agc Exp $
 
 SHA1 (aide-0.6.tar.gz) = e6d112193ad96bdbbe1e1b685dac644d958a1155
 Size (aide-0.6.tar.gz) = 212475 bytes
 SHA1 (patch-aa) = db675e373464c5127f9bd4cbfd38e6634c950ebf
 SHA1 (patch-ab) = 5cc5fdd9fcfde2c5e118bfa4cf68ec7e05215003
+SHA1 (patch-ac) = 994de0dc4fc72d9a94f1110c79ece4cc4c0129cb
diff -r e27c430a8c69 -r 083ccf18db88 security/aide06/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/aide06/patches/patch-ac  Fri Dec 19 12:34:30 2003 +0000
@@ -0,0 +1,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);



Home | Main Index | Thread Index | Old Index