pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/coconut Fixed invalid lvalue (once again in obst...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/035a9fc4884c
branches:  trunk
changeset: 535977:035a9fc4884c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Nov 30 21:13:53 2007 +0000

description:
Fixed invalid lvalue (once again in obstack_ptr_grow).

diffstat:

 devel/coconut/distinfo         |   3 ++-
 devel/coconut/patches/patch-ab |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 2d15614f2202 -r 035a9fc4884c devel/coconut/distinfo
--- a/devel/coconut/distinfo    Fri Nov 30 21:00:13 2007 +0000
+++ b/devel/coconut/distinfo    Fri Nov 30 21:13:53 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 22:24:11 agc Exp $
+$NetBSD: distinfo,v 1.4 2007/11/30 21:13:53 rillig Exp $
 
 SHA1 (coconut-0.3.0.tar.gz) = 69c1c4cbf061def240f7c8c1636bdddb2c00da5b
 RMD160 (coconut-0.3.0.tar.gz) = 71098f8eb9a731f990534c98d532707ce93329dc
 Size (coconut-0.3.0.tar.gz) = 692317 bytes
 SHA1 (patch-aa) = ea9f4b49f55ae74a61f0b72687c973de71b14a7b
+SHA1 (patch-ab) = dec14730ce92d32e1bc53bc301f1b7e3dae32043
diff -r 2d15614f2202 -r 035a9fc4884c devel/coconut/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/coconut/patches/patch-ab    Fri Nov 30 21:13:53 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2007/11/30 21:13:54 rillig Exp $
+
+--- coconut/fobstack.h.orig    2001-01-21 00:02:00.000000000 +0000
++++ coconut/fobstack.h 2007-11-30 21:04:44.000000000 +0000
+@@ -421,7 +421,7 @@ __extension__                                                              \
+ ({ struct obstack *__o = (OBSTACK);                                   \
+    if (__o->next_free + sizeof (void *) > __o->chunk_limit)           \
+      _obstack_newchunk (__o, sizeof (void *));                                \
+-   *((void **)__o->next_free)++ = ((void *)datum);                    \
++   *((*(void ***)&(__o->next_free)))++ = ((void *)datum);             \
+    (void) 0; })
+ 
+ # define obstack_int_grow(OBSTACK,datum)                              \
+@@ -429,7 +429,7 @@ __extension__                                                              \
+ ({ struct obstack *__o = (OBSTACK);                                   \
+    if (__o->next_free + sizeof (int) > __o->chunk_limit)              \
+      _obstack_newchunk (__o, sizeof (int));                           \
+-   *((int *)__o->next_free)++ = ((int)datum);                         \
++   *((*(int **)&(__o->next_free)))++ = ((int)datum);                  \
+    (void) 0; })
+ 
+ # define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr)



Home | Main Index | Thread Index | Old Index