[Olsr-cvs] olsrd-current/src/unix ifnet.c,1.46,1.47
Bernd Petrovitsch
(spam-protected)
Fri Apr 20 15:46:07 CEST 2007
- Previous message: [Olsr-cvs] olsrd-current/lib/tas/src/lua lapi.c, 1.1, 1.2 lauxlib.c, 1.1, 1.2 lauxlib.h, 1.1, 1.2 lbaselib.c, 1.1, 1.2 ldebug.c, 1.1, 1.2 ldebug.h, 1.1, 1.2 ldo.h, 1.1, 1.2 liolib.c, 1.1, 1.2 llex.c, 1.1, 1.2 llex.h, 1.1, 1.2 lparser.c, 1.1, 1.2 lua.h, 1.1, 1.2 lundump.c, 1.1, 1.2
- Next message: [Olsr-cvs] olsrd-current/src/bsd net.h,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [Olsr-cvs] olsrd-current/lib/tas/src/lua lapi.c, 1.1, 1.2 lauxlib.c, 1.1, 1.2 lauxlib.h, 1.1, 1.2 lbaselib.c, 1.1, 1.2 ldebug.c, 1.1, 1.2 ldebug.h, 1.1, 1.2 ldo.h, 1.1, 1.2 liolib.c, 1.1, 1.2 llex.c, 1.1, 1.2 llex.h, 1.1, 1.2 lparser.c, 1.1, 1.2 lua.h, 1.1, 1.2 lundump.c, 1.1, 1.2
- Next message: [Olsr-cvs] olsrd-current/src/bsd net.h,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Olsr-cvs
mailing list