diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-14 17:59:25 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2008-08-22 19:52:58 +0100 |
commit | 1423c809cc4ddc2e013ba6264c49a11e5719c6f2 (patch) | |
tree | db0389e7de020bbcb9fd78d45417b0842a6adb0b /ospfd | |
parent | 89d9fa301e146193093ff876f96b3612dc390bbb (diff) |
[lib] mes_lookup string lookup table argument should be marked const
2008-08-14 Stephen Hemminger <stephen.hemminger@vyatta.com>
* lib/log.{c,h}: struct message argument should point to const
* */*.c: adjust to suit,
Signed-off-by: Paul Jakma <paul@quagga.net>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_network.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index d5bf7493..89ff2038 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -165,11 +165,7 @@ int ospf_sock_init (void) { int ospf_sock; - /* - * XXX warning: unused variable `tos' - * tos should be ifdefed similarly to usage - */ - int ret, tos, hincl = 1; + int ret, hincl = 1; if ( ospfd_privs.change (ZPRIVS_RAISE) ) zlog_err ("ospf_sock_init: could not raise privs, %s", @@ -201,10 +197,7 @@ ospf_sock_init (void) #elif defined (IPTOS_PREC_INTERNETCONTROL) #warning "IP_HDRINCL not available on this system" #warning "using IPTOS_PREC_INTERNETCONTROL" - /* Set precedence field. */ - tos = IPTOS_PREC_INTERNETCONTROL; - ret = setsockopt (ospf_sock, IPPROTO_IP, IP_TOS, - (char *) &tos, sizeof (int)); + ret = setsockopt_ipv4_tos(ospf_sock, IPTOS_PREC_INTERNETCONTROL); if (ret < 0) { int save_errno = errno; |