diff options
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. */ |