[Olsr-cvs] olsrd-current/src/bsd net.h,1.3,1.4

Bernd Petrovitsch (spam-protected)
Fri Apr 20 15:46:07 CEST 2007


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

Modified Files:
	net.h 
Log Message:
cleanup, 1. step (to get some local changes away):
* killed lots of warnings
* added __attribure__((unused)) and __attribure__((format(printf, ..., ...)))
* added "const"
* moved declarations of static functions into .c files
* added "static" declarations
* removed all "inline" declarations. Usually the compiler knows better anyways.
* removed emtpy "return" statements at the end of functions
* localized declarations
* avoided unnecessary data copies
* removed lots of empty lines
There is much more to do.



Index: net.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/bsd/net.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** net.h	21 Nov 2004 10:50:52 -0000	1.3
--- net.h	20 Apr 2007 13:46:05 -0000	1.4
***************
*** 56,61 ****
  #include "../olsr_protocol.h"
  
- extern int
- olsr_printf(int, char *, ...);
- 
  #endif
--- 56,58 ----





More information about the Olsr-cvs mailing list