source: freewrt/package/xinetd/patches/xinetd-2.3.13-gcc4-1.patch@ 9df7618

freewrt_1_0 freewrt_2_0
Last change on this file since 9df7618 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.3 KB
  • xinetd/service.c

    Submitted By:            Randy McMurchy <randy_at_linuxfromscratch_dot_org>
    Date:                    2005-08-07
    Initial Package Version: 2.3.13
    Upstream Status:         Not submitted
    Origin:                  Fedora Development CVS
    Description:             Fixes compilation error if using GCC-4.x
    
    
    diff -Naur xinetd-2.3.13-orig/xinetd/service.c xinetd-2.3.13/xinetd/service.c
    old new  
    764764               return FAILED;
    765765
    766766            if ( last == NULL ) {
    767                last = SAIN( SVC_LAST_DGRAM_ADDR(sp) ) =
    768                   SAIN( calloc( 1, sizeof(union xsockaddr) ) );
     767               SVC_LAST_DGRAM_ADDR(sp) = calloc( 1, sizeof(union xsockaddr) );
     768               last = SAIN(SVC_LAST_DGRAM_ADDR(sp));
    769769            }
    770770
    771771            (void) time( &current_time ) ;
     
    791791               return FAILED;
    792792
    793793            if( last == NULL ) {
    794                last = SAIN6(SVC_LAST_DGRAM_ADDR(sp)) =
    795                   SAIN6(calloc( 1, sizeof(union xsockaddr) ) );
     794               SVC_LAST_DGRAM_ADDR(sp) = calloc( 1, sizeof(union xsockaddr) );
     795               last = SAIN6( SVC_LAST_DGRAM_ADDR(sp) );
    796796            }
    797797
    798798            (void) time( &current_time ) ;
Note: See TracBrowser for help on using the repository browser.