From 0b28f081250ecb3c092d750926c39b406c1db391 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Tue, 27 Feb 2007 17:03:22 +0000 Subject: [PATCH] correct type to silence const complaint --- sbin/ifconfig/ifconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 6cd8d69a09f3..daa31f3e9a6c 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -887,7 +887,8 @@ ifmaybeload(const char *name) { struct module_stat mstat; int fileid, modid; - char ifkind[35], *cp, *dp; + char ifkind[35], *dp; + const char *cp; /* turn interface and unit into module name */ strcpy(ifkind, "if_");