[Olsr-cvs] olsrd-current/src/olsr_switch ohs_cmd.c,1.23,1.24

Bernd Petrovitsch (spam-protected)
Sat Jul 28 14:58:25 CEST 2007


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

Modified Files:
	ohs_cmd.c 
Log Message:
* ooops, fixed another warning in the Windows port

Index: ohs_cmd.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/ohs_cmd.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** ohs_cmd.c	28 Jul 2007 12:53:15 -0000	1.23
--- ohs_cmd.c	28 Jul 2007 12:58:23 -0000	1.24
***************
*** 95,105 ****
  }
  
  int
! ohs_cmd_olsrd(char *args)
  {
- #ifdef WIN32
    printf("olsrd command not available in windows version\nStart instances manually\n");
    return 0;
  #else
    char *olsrd_args[MAX_OLSRD_ARGS];
    struct in_addr iaddr;
--- 95,109 ----
  }
  
+ #ifdef WIN32
  int
! ohs_cmd_olsrd(char *args __attribute__((unused)))
  {
    printf("olsrd command not available in windows version\nStart instances manually\n");
    return 0;
+ }
  #else
+ int
+ ohs_cmd_olsrd(char *args)
+ {
    char *olsrd_args[MAX_OLSRD_ARGS];
    struct in_addr iaddr;
***************
*** 229,234 ****
    printf("Usage: olsrd [start|stop|show|setb|seta] [IP|path|args]\n");
    return 0;
- #endif
  }
  
  int
--- 233,238 ----
    printf("Usage: olsrd [start|stop|show|setb|seta] [IP|path|args]\n");
    return 0;
  }
+ #endif
  
  int





More information about the Olsr-cvs mailing list