xinetd: slightly changed code to make it compilable with gcc 4.1.1
authorFrans Meulenbroeks <fransmeulenbroeks@yahoo.com>
Sat, 1 Jul 2006 17:27:05 +0000 (17:27 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 1 Jul 2006 17:27:05 +0000 (17:27 +0000)
packages/xinetd/xinetd/service.c.patch [new file with mode: 0644]
packages/xinetd/xinetd_2.3.13.bb

diff --git a/packages/xinetd/xinetd/service.c.patch b/packages/xinetd/xinetd/service.c.patch
new file mode 100644 (file)
index 0000000..b94ae21
--- /dev/null
@@ -0,0 +1,24 @@
+--- xinetd-2.3.13/xinetd/service.c.orig        2006-07-01 19:14:23.000000000 +0200
++++ xinetd-2.3.13/xinetd/service.c     2006-07-01 19:22:28.000000000 +0200
+@@ -764,8 +764,8 @@
+                return FAILED;
+             if ( last == NULL ) {
+-               last = SAIN( SVC_LAST_DGRAM_ADDR(sp) ) = 
+-                SAIN( calloc( 1, sizeof(union xsockaddr) ) );
++               last = SAIN(calloc( 1, sizeof(union xsockaddr) ) );
++             SVC_LAST_DGRAM_ADDR(sp) = (union xsockaddr *)last;
+             }
+             (void) time( &current_time ) ;
+@@ -791,8 +791,8 @@
+                return FAILED;
+           if( last == NULL ) {
+-               last = SAIN6(SVC_LAST_DGRAM_ADDR(sp)) = 
+-                SAIN6(calloc( 1, sizeof(union xsockaddr) ) );
++               last = SAIN6(calloc( 1, sizeof(union xsockaddr) ) );
++             SVC_LAST_DGRAM_ADDR(sp) = (union xsockaddr *)last;
+             }
+             (void) time( &current_time ) ;
index 699667c..4e67384 100644 (file)
@@ -1,11 +1,12 @@
 DEPENDS = ""
 DESCRIPTION = "Highly configurable, modular and secure inetd"
 MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
-PR="r3"
+PR="r4"
 
 SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \
          file://xinetd.init \
          file://xinetd.conf \
+         file://service.c.patch;patch=1 \
          "
 
 EXTRA_OECONF="--disable-nls"