summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.h
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2009-02-27 00:31:34 +0000
committerrpaulo <rpaulo@FreeBSD.org>2009-02-27 00:31:34 +0000
commit2af9e81296d11b332adae2fe9855f658a4660ae8 (patch)
tree7275c4eafc8684e62de1c0c3a9947ef80862818d /sbin/ifconfig/ifconfig.h
parent9e19feba057306f5e98a28151c121d0eefe749f2 (diff)
downloadFreeBSD-src-2af9e81296d11b332adae2fe9855f658a4660ae8.zip
FreeBSD-src-2af9e81296d11b332adae2fe9855f658a4660ae8.tar.gz
Replace clone_setcallback() with a new function clone_setdefcallback()
that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version)
Diffstat (limited to 'sbin/ifconfig/ifconfig.h')
-rw-r--r--sbin/ifconfig/ifconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.h b/sbin/ifconfig/ifconfig.h
index 70c1cad..cb1a46d 100644
--- a/sbin/ifconfig/ifconfig.h
+++ b/sbin/ifconfig/ifconfig.h
@@ -141,7 +141,7 @@ void printb(const char *s, unsigned value, const char *bits);
void ifmaybeload(const char *name);
typedef void clone_callback_func(int, struct ifreq *);
-void clone_setcallback(clone_callback_func *);
+void clone_setdefcallback(const char *, clone_callback_func *);
/*
* XXX expose this so modules that neeed to know of any pending
OpenPOWER on IntegriCloud