diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-02-21 14:34:53 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-02-21 14:34:53 +0100 |
commit | e81b440f6878605edd19ed62441648ac71260881 (patch) | |
tree | bec78543f4a89096ac22e850dbb814a3f75d119a /lib | |
parent | 9e43ccf07b96597ef098955a07383d826938cd2d (diff) | |
download | bird-e81b440f6878605edd19ed62441648ac71260881.tar bird-e81b440f6878605edd19ed62441648ac71260881.zip |
Fix configure to enable warnings and fix most of them.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/event.c | 3 | ||||
-rw-r--r-- | lib/ip.h | 2 | ||||
-rw-r--r-- | lib/ipv4.h | 2 | ||||
-rw-r--r-- | lib/socket.h | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/event.c b/lib/event.c index d556cd0..ce5e81c 100644 --- a/lib/event.c +++ b/lib/event.c @@ -49,7 +49,8 @@ static struct resclass ev_class = { "Event", sizeof(event), (void (*)(resource *)) ev_postpone, - ev_dump + ev_dump, + NULL }; /** @@ -46,7 +46,7 @@ char *ip_scope_text(unsigned); struct prefix { ip_addr addr; - int len; + unsigned int len; }; #define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l))))) @@ -72,7 +72,7 @@ int ipv4_classify(u32); u32 ipv4_class_mask(u32); byte *ipv4_skip_header(byte *, int *); -static inline int ipv4_has_link_scope(u32 a) +static inline int ipv4_has_link_scope(u32 a UNUSED) { return 0; } diff --git a/lib/socket.h b/lib/socket.h index 82b5de0..a285799 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -66,6 +66,8 @@ int sk_leave_group(sock *s, ip_addr maddr); int sk_set_ipv6_checksum(sock *s, int offset); #endif +int sk_set_broadcast(sock *s, int enable); + static inline int sk_send_buffer_empty(sock *sk) { |