[Olsr-cvs] olsrd-current/src main.c,1.104,1.105

Bernd Petrovitsch (spam-protected)
Sun Nov 25 14:08:57 CET 2007


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

Modified Files:
	main.c 
Log Message:
* added paranoia checks

Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/main.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -C2 -d -r1.104 -r1.105
*** main.c	22 Nov 2007 11:43:36 -0000	1.104
--- main.c	25 Nov 2007 13:08:54 -0000	1.105
***************
*** 43,46 ****
--- 43,47 ----
  #include <signal.h>
  #include <sys/stat.h>
+ #include <assert.h>
  
  #include "defs.h"
***************
*** 121,124 ****
--- 122,133 ----
  #endif
  
+   /* paranoia checks */
+   assert(sizeof(olsr_u8_t) == 1);
+   assert(sizeof(olsr_u16_t) == 2);
+   assert(sizeof(olsr_u32_t) == 4);
+   assert(sizeof(olsr_8_t) == 1);
+   assert(sizeof(olsr_16_t) == 2);
+   assert(sizeof(olsr_32_t) == 4);
+ 
    debug_handle = stdout;
  #ifndef WIN32





More information about the Olsr-cvs mailing list