From 990b2be3b747b32ae8ca2f7f2c172102b06e0fee Mon Sep 17 00:00:00 2001 From: charnier Date: Tue, 12 Sep 2006 17:54:35 +0000 Subject: Add FBSDID, rename local variable time to not conflict with time() --- sbin/sconfig/sconfig.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sbin/sconfig/sconfig.c b/sbin/sconfig/sconfig.c index 783eac0..4274fbf 100644 --- a/sbin/sconfig/sconfig.c +++ b/sbin/sconfig/sconfig.c @@ -15,8 +15,11 @@ * all derivative works or modified versions. * * Cronyx Id: sconfig.c,v 1.4.2.2 2005/11/09 13:01:35 rik Exp $ - * $FreeBSD$ */ + +#include +__FBSDID("$FreeBSD$"); + #include #include #include @@ -39,9 +42,6 @@ char mask[64]; int adapter_type; /* 0-sigma, 1-tau, 2-taupci, 3-tau32 */ char chan_name[16]; -extern char *optarg; -extern int optind; - static void usage (void) { @@ -257,7 +257,11 @@ print_modems (int fd, int need_header) } static void +#ifdef __linux__ print_ifconfig (int fd) +#else +print_ifconfig (int fd __unused) +#endif { char buf [64]; #ifdef __linux__ @@ -508,14 +512,14 @@ format_e3_status (unsigned long status) } static char * -format_e3_cv (unsigned long cv, unsigned long baud, unsigned long time) +format_e3_cv (unsigned long cv, unsigned long baud, unsigned long atime) { static char buf[80]; - if (!cv || !baud || !time) + if (!cv || !baud || !atime) sprintf (buf, " - "); else - sprintf (buf, "%10lu (%.1e)", cv, (double)cv/baud/time); + sprintf (buf, "%10lu (%.1e)", cv, (double)cv/baud/atime); return buf; } -- cgit v1.1