summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2006-09-12 17:54:35 +0000
committercharnier <charnier@FreeBSD.org>2006-09-12 17:54:35 +0000
commit990b2be3b747b32ae8ca2f7f2c172102b06e0fee (patch)
treeb6cfa4bb7950fa80a8a80573d8dbe746ae6f9f9c
parent00a7738e90a9b0ead0810cdfec69c8251fc05e40 (diff)
downloadFreeBSD-src-990b2be3b747b32ae8ca2f7f2c172102b06e0fee.zip
FreeBSD-src-990b2be3b747b32ae8ca2f7f2c172102b06e0fee.tar.gz
Add FBSDID, rename local variable time to not conflict with time()
-rw-r--r--sbin/sconfig/sconfig.c18
1 files 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 <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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;
}
OpenPOWER on IntegriCloud