diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-04-15 06:25:58 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-04-15 06:25:58 +0000 |
commit | f6ae17d57c44b163fe0367205dedeef274e90aa6 (patch) | |
tree | ccc2224f28bbd23e7740b2e824602fde517718d0 | |
parent | ba18538620b8b123eba6fba5a075efa8d211bb68 (diff) | |
download | FreeBSD-src-f6ae17d57c44b163fe0367205dedeef274e90aa6.zip FreeBSD-src-f6ae17d57c44b163fe0367205dedeef274e90aa6.tar.gz |
Don't abuse module names to facilitate ifconfig module loading;
such abuse isn't really needed. (And if we do need type information
associated with a module then we should make it explicit and not
use hacks.)
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 1522450..ff220194 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1813,7 +1813,7 @@ ifmaybeload(char *name) cp = mstat.name; } /* already loaded? */ - if (!strcmp(ifkind, cp)) + if (!strncmp(name, cp, strlen(cp))) return; } } |