[Olsr-cvs] olsrd-current/src/olsr_switch main.c, 1.24, 1.25 ohs_cmd.c, 1.22, 1.23 ohs_cmd.h, 1.5, 1.6 olsr_host_switch.h, 1.8, 1.9

Bernd Petrovitsch (spam-protected)
Sat Jul 28 14:53:18 CEST 2007


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

Modified Files:
	main.c ohs_cmd.c ohs_cmd.h olsr_host_switch.h 
Log Message:
* fixed warnings

Index: ohs_cmd.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/ohs_cmd.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** ohs_cmd.c	31 May 2007 00:14:53 -0000	1.22
--- ohs_cmd.c	28 Jul 2007 12:53:15 -0000	1.23
***************
*** 537,541 ****
  
  int
! ohs_cmd_exit(char *args)
  {
  
--- 537,541 ----
  
  int
! ohs_cmd_exit(char *args __attribute__((unused)))
  {
  
***************
*** 543,547 ****
  
    ohs_close(0);
-   return 0;
  }
  
--- 543,546 ----

Index: olsr_host_switch.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/olsr_host_switch.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** olsr_host_switch.h	4 Jun 2005 21:07:33 -0000	1.8
--- olsr_host_switch.h	28 Jul 2007 12:53:15 -0000	1.9
***************
*** 60,67 ****
  #ifdef WIN32
  #define close(x) closesocket(x)
! int __stdcall ohs_close(unsigned long signal);
  #else
! void
! ohs_close(int);
  #endif
  
--- 60,66 ----
  #ifdef WIN32
  #define close(x) closesocket(x)
! int __stdcall ohs_close(unsigned long signal) __attribute__((noreturn));
  #else
! void ohs_close(int) __attribute__((noreturn));
  #endif
  

Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** main.c	20 Apr 2007 14:23:41 -0000	1.24
--- main.c	28 Jul 2007 12:53:15 -0000	1.25
***************
*** 128,135 ****
  #ifdef WIN32
  int __stdcall
! ohs_close(unsigned long signal)
  #else
  void
! ohs_close(int signal)
  #endif
  {
--- 128,135 ----
  #ifdef WIN32
  int __stdcall
! ohs_close(unsigned long signal __attribut__((unused)))
  #else
  void
! ohs_close(int signal __attribute__((unused)))
  #endif
  {
***************
*** 312,316 ****
  
  static int
! ohs_init_connect_sockets()
  {
    olsr_u32_t yes = 1;
--- 312,316 ----
  
  static int
! ohs_init_connect_sockets(void)
  {
    olsr_u32_t yes = 1;
***************
*** 359,363 ****
  
  static int
! ohs_configure()
  {
  
--- 359,363 ----
  
  static int
! ohs_configure(void)
  {
  
***************
*** 396,400 ****
  
  static void
! ohs_listen_loop()
  {
  #if !defined WIN32
--- 396,400 ----
  
  static void
! ohs_listen_loop(void)
  {
  #if !defined WIN32
***************
*** 535,539 ****
  
  int
! main(int argc, char *argv[])
  {
  
--- 535,539 ----
  
  int
! main(void)
  {
  

Index: ohs_cmd.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr_switch/ohs_cmd.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ohs_cmd.h	23 Oct 2005 19:01:04 -0000	1.5
--- ohs_cmd.h	28 Jul 2007 12:53:15 -0000	1.6
***************
*** 72,76 ****
  
  int
! ohs_cmd_exit(char *);
  
  int
--- 72,76 ----
  
  int
! ohs_cmd_exit(char *) __attribute__((noreturn));
  
  int





More information about the Olsr-cvs mailing list