diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-10-05 15:29:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-10-05 15:29:29 +0000 |
commit | b24d2058bf434bf794f0f37c86db10369602d8f1 (patch) | |
tree | b36fc949196f877f8e1832278b1c11cd87e2cf6f /usr.sbin/rtsold/dump.c | |
parent | 4305217087eb67458548b92ad1c06d2ceb930f41 (diff) |
ansi
Diffstat (limited to 'usr.sbin/rtsold/dump.c')
-rw-r--r-- | usr.sbin/rtsold/dump.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/rtsold/dump.c b/usr.sbin/rtsold/dump.c index 2fa4c16e7d7..f8ac5e31474 100644 --- a/usr.sbin/rtsold/dump.c +++ b/usr.sbin/rtsold/dump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dump.c,v 1.10 2002/06/10 19:57:35 espie Exp $ */ +/* $OpenBSD: dump.c,v 1.11 2003/10/05 15:29:28 deraadt Exp $ */ /* $KAME: dump.c,v 1.10 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -55,7 +55,7 @@ static char *sec2str(time_t); char *ifstatstr[] = {"IDLE", "DELAY", "PROBE", "DOWN", "TENTATIVE"}; static void -dump_interface_status() +dump_interface_status(void) { struct ifinfo *ifinfo; struct timeval now; @@ -94,8 +94,7 @@ dump_interface_status() } void -rtsold_dump_file(dumpfile) - char *dumpfile; +rtsold_dump_file(char *dumpfile) { if ((fp = fopen(dumpfile, "w")) == NULL) { warnmsg(LOG_WARNING, __func__, "open a dump file(%s): %s", @@ -107,8 +106,7 @@ rtsold_dump_file(dumpfile) } static char * -sec2str(total) - time_t total; +sec2str(time_t total) { static char result[256]; int days, hours, mins, secs; |