[Olsr-cvs] olsrd-current/src/olsr_switch main.c, 1.27, 1.28 olsr_host_switch.h, 1.9, 1.10

Bernd Petrovitsch (spam-protected)
Thu Aug 2 12:20:27 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/src/olsr_switch
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21043/src/olsr_switch

Modified Files:
	main.c olsr_host_switch.h 
Log Message:
* const'ify function

Index: olsr_host_switch.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/olsr_host_switch.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** olsr_host_switch.h	28 Jul 2007 12:53:15 -0000	1.9
--- olsr_host_switch.h	2 Aug 2007 10:20:25 -0000	1.10
***************
*** 102,107 ****
  #endif
  
! char *
! olsr_ip_to_string(union olsr_ip_addr *);
  
  struct ohs_connection *
--- 102,107 ----
  #endif
  
! const char *
! olsr_ip_to_string(const union olsr_ip_addr *);
  
  struct ohs_connection *

Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/main.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** main.c	1 Aug 2007 16:28:30 -0000	1.27
--- main.c	2 Aug 2007 10:20:25 -0000	1.28
***************
*** 97,106 ****
  ohs_listen_loop(void);
  
! char *
! olsr_ip_to_string(union olsr_ip_addr *addr)
  {
    static int index = 0;
    static char buff[4][100];
!   char *ret;
    struct in_addr in;
    
--- 97,106 ----
  ohs_listen_loop(void);
  
! const char *
! olsr_ip_to_string(const union olsr_ip_addr *addr)
  {
    static int index = 0;
    static char buff[4][100];
!   const char *ret;
    struct in_addr in;
    





More information about the Olsr-cvs mailing list