[Olsr-cvs] olsrd-current/src/unix ifnet.c,1.46,1.47

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


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

Modified Files:
	ifnet.c 
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: ifnet.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/unix/ifnet.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** ifnet.c	14 Mar 2007 14:01:14 -0000	1.46
--- ifnet.c	20 Apr 2007 13:46:05 -0000	1.47
***************
*** 73,77 ****
  
  int
! set_flag(char *ifname, short flag)
  {
    struct ifreq ifr;
--- 73,77 ----
  
  int
! set_flag(char *ifname, short flag __attribute__((unused)))
  {
    struct ifreq ifr;
***************
*** 109,113 ****
  
  void
! check_interface_updates(void *foo)
  {
    struct olsr_if *tmp_if;
--- 109,113 ----
  
  void
! check_interface_updates(void *foo __attribute__((unused)))
  {
    struct olsr_if *tmp_if;





More information about the Olsr-cvs mailing list