summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifmedia.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-10 14:47:35 +0000
committerpeter <peter@FreeBSD.org>1997-05-10 14:47:35 +0000
commit6f36e2eccf49524bd4de897bfe7947bf6020aec1 (patch)
treebbc42b3be15501600c2890d86b5b76ad568ef982 /sbin/ifconfig/ifmedia.c
parent4ca868f8b868864e07548f2b67d96af31b2591b0 (diff)
downloadFreeBSD-src-6f36e2eccf49524bd4de897bfe7947bf6020aec1.zip
FreeBSD-src-6f36e2eccf49524bd4de897bfe7947bf6020aec1.tar.gz
Grumble.. My last patchup here didn't quite work either. I hate this
program and it's use of global variables. Somehow, I managed to miss the most obvious case.. "ifconfig ed0 10.0.0.1" failed (no "inet") Submitted by: dfr
Diffstat (limited to 'sbin/ifconfig/ifmedia.c')
-rw-r--r--sbin/ifconfig/ifmedia.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sbin/ifconfig/ifmedia.c b/sbin/ifconfig/ifmedia.c
index d867ba4..7d7f0f1 100644
--- a/sbin/ifconfig/ifmedia.c
+++ b/sbin/ifconfig/ifmedia.c
@@ -1,5 +1,5 @@
/* $NetBSD: ifconfig.c,v 1.34 1997/04/21 01:17:58 lukem Exp $ */
-/* $Id$ */
+/* $Id: ifmedia.c,v 1.1 1997/05/04 06:22:27 peter Exp $ */
/*
* Copyright (c) 1997 Jason R. Thorpe.
@@ -170,10 +170,11 @@ media_status(s)
}
void
-setmedia(val, d, s)
+setmedia(val, d, s, afp)
const char *val;
int d;
int s;
+ const struct afswtch *afp;
{
struct ifmediareq ifmr;
int first_type, subtype;
@@ -215,20 +216,22 @@ setmedia(val, d, s)
}
void
-setmediaopt(val, d, s)
+setmediaopt(val, d, s, afp)
const char *val;
int d;
int s;
+ const struct afswtch *afp;
{
domediaopt(val, 0, s);
}
void
-unsetmediaopt(val, d, s)
+unsetmediaopt(val, d, s, afp)
const char *val;
int d;
int s;
+ const struct afswtch *afp;
{
domediaopt(val, 1, s);
OpenPOWER on IntegriCloud