diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-08-06 15:57:59 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-08-06 15:57:59 +0000 |
commit | f28b0e57bd5173215132fed02aa4b284d7cbe26a (patch) | |
tree | 4e4d2f65d82afa18af4e47fe13bd6c3e83b4ba4a /zebra/if_proc.c | |
parent | 1f742f21a98f756cea03856849fa2f82f467baf7 (diff) | |
download | quagga-f28b0e57bd5173215132fed02aa4b284d7cbe26a.tar.bz2 quagga-f28b0e57bd5173215132fed02aa4b284d7cbe26a.tar.xz |
[zebra] fix inconsistencies in ifstat_update_* declarations and definitions
2006-08-06 Paul Jakma <paul.jakma@sun.com>
* interface.h: (ifstat_update_proc) declaration should match
ifstat_update_sysctl really, which is to not return status, as
such status is not used anywhere.
* if_{proc,sysctl}.c: Make ifstat_update_* definitions and return values
consistent with each other and their declarations, ie:
(void) (*) (void).
Diffstat (limited to 'zebra/if_proc.c')
-rw-r--r-- | zebra/if_proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/if_proc.c b/zebra/if_proc.c index 6002595a..367b0d6f 100644 --- a/zebra/if_proc.c +++ b/zebra/if_proc.c @@ -123,8 +123,8 @@ ifstat_dev_fields (int version, char *buf, struct interface *ifp) } /* Update interface's statistics. */ -int -ifstat_update_proc () +void +ifstat_update_proc (void) { FILE *fp; char buf[PROCBUFSIZ]; @@ -139,7 +139,7 @@ ifstat_update_proc () { zlog_warn ("Can't open proc file %s: %s", _PATH_PROC_NET_DEV, safe_strerror (errno)); - return -1; + return; } /* Drop header lines. */ @@ -162,7 +162,7 @@ ifstat_update_proc () ifstat_dev_fields (version, stat, ifp); } fclose(fp); - return 0; + return; } /* Interface structure allocation by proc filesystem. */ |