[Olsr-cvs] olsrd-current/lib/nameservice/src nameservice.c, 1.21, 1.22

Bernd Petrovitsch (spam-protected)
Thu Apr 26 00:08:10 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/lib/nameservice/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2640/lib/nameservice/src

Modified Files:
	nameservice.c 
Log Message:
* OLSR_PRINTF() is now a real C expression
* removed superflous type-casts


Index: nameservice.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/nameservice/src/nameservice.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** nameservice.c	20 Apr 2007 13:46:02 -0000	1.21
--- nameservice.c	25 Apr 2007 22:08:06 -0000	1.22
***************
*** 530,537 ****
  		}
  		
! 		if(net_outbuffer_push(ifn, (olsr_u8_t *)message, namesize) != namesize ) {
  			/* send data and try again */
  			net_output(ifn);
! 			if(net_outbuffer_push(ifn, (olsr_u8_t *)message, namesize) != namesize ) {
  				olsr_printf(1, "NAME PLUGIN: could not send on interface: %s\n", ifn->int_name);
  			}
--- 530,537 ----
  		}
  		
! 		if(net_outbuffer_push(ifn, message, namesize) != namesize ) {
  			/* send data and try again */
  			net_output(ifn);
! 			if(net_outbuffer_push(ifn, message, namesize) != namesize ) {
  				olsr_printf(1, "NAME PLUGIN: could not send on interface: %s\n", ifn->int_name);
  			}





More information about the Olsr-cvs mailing list