cleanup, 1. step (to get some local changes away):
authorBernd Petrovitsch <bernd@firmix.at>
Fri, 20 Apr 2007 14:06:18 +0000 (14:06 +0000)
committerBernd Petrovitsch <bernd@firmix.at>
Fri, 20 Apr 2007 14:06:18 +0000 (14:06 +0000)
commit5146d19e7f15719e8b40a3b3e25bf02e4eae9078
treecf8e9791a627bebb1c11f31ee160a74dbaf1c678
parent0fdb1f4449fdece96fc957ce58bf2cdb496e9753
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.
15 files changed:
lib/bmf/src/Address.c
lib/bmf/src/Bmf.c
lib/bmf/src/NetworkInterfaces.c
lib/bmf/src/PacketHistory.c
lib/bmf/src/olsrd_plugin.c
lib/dot_draw/src/olsrd_dot_draw.c
lib/dot_draw/src/olsrd_plugin.c
lib/dyn_gw/src/olsrd_dyn_gw.c
lib/dyn_gw/src/olsrd_dyn_gw.h
lib/dyn_gw/src/olsrd_plugin.c
lib/dyn_gw_plain/src/olsrd_dyn_gw_plain.c
lib/httpinfo/src/admin_interface.c
lib/httpinfo/src/olsrd_httpinfo.c
lib/httpinfo/src/olsrd_httpinfo.h
lib/httpinfo/src/olsrd_plugin.c