diff options
author | paul <paul> | 2005-11-24 15:15:17 +0000 |
---|---|---|
committer | paul <paul> | 2005-11-24 15:15:17 +0000 |
commit | 7354f0c8958fbc12b165ad88c2e87ebc19f8f43e (patch) | |
tree | 048c943521f16ed3669942dc56be71119885b40e /zebra/if_sysctl.c | |
parent | 3bfba521650cac319da1b95464841b457eb4d927 (diff) | |
download | quagga-7354f0c8958fbc12b165ad88c2e87ebc19f8f43e.tar.bz2 quagga-7354f0c8958fbc12b165ad88c2e87ebc19f8f43e.tar.xz |
[zebra] Fix mistake in previous commit and further compile warnings/errors.
2005-11-24 Paul Jakma <paul.jakma@sun.com>
* kernel_socket.h: New header for functions exported to sysctl
methods.
* kernel_socket.c: include previous.
Remove static qualifier from couple of functions which are
used by sysctl methods, incorrectly added in previous commit.
Add a workaround for a bogus gcc warning to the RTA_ macros.
* Makefile.am: Add kernel_socket.h to noinst_HEADERS
* if_sysctl.c: include rt.h and kernel_socket.h and remove
redundant prototypes.
* rtread_sysctl.c: ditto.
(route_read) fix mismatch of return values.
* {rt,zserv,rib}.h: Include lib headers depended on.
Diffstat (limited to 'zebra/if_sysctl.c')
-rw-r--r-- | zebra/if_sysctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/if_sysctl.c b/zebra/if_sysctl.c index 7ad570f4..f1e3dcde 100644 --- a/zebra/if_sysctl.c +++ b/zebra/if_sysctl.c @@ -30,6 +30,9 @@ #include "ioctl.h" #include "log.h" +#include "zebra/rt.h" +#include "zebra/kernel_socket.h" + int ifstat_update_sysctl () { @@ -91,8 +94,6 @@ interface_list () caddr_t ref, buf, end; size_t bufsiz; struct if_msghdr *ifm; - int ifm_read (struct if_msghdr *); - int ifam_read (struct ifa_msghdr *); #define MIBSIZ 6 int mib[MIBSIZ] = |