summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-18 23:36:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-18 23:36:10 +0000
commitf37fd726707b13f2f8d3733b6e62de7d7c2b3fba (patch)
tree9d637b5b03c2f317e58a814507fbae0b71cc16be
parent0883f50518f301a1ec62a8387f7c89cdbb656cad (diff)
cleanse format string
-rw-r--r--sys/dev/pci/if_san_obsd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/if_san_obsd.c b/sys/dev/pci/if_san_obsd.c
index ca0c5891e91..3dc5ca2007f 100644
--- a/sys/dev/pci/if_san_obsd.c
+++ b/sys/dev/pci/if_san_obsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_san_obsd.c,v 1.13 2012/04/11 17:42:53 mikeb Exp $ */
+/* $OpenBSD: if_san_obsd.c,v 1.14 2013/11/18 23:36:09 deraadt Exp $ */
/*-
* Copyright (c) 2001-2004 Sangoma Technologies (SAN)
@@ -83,10 +83,6 @@ static void wanpipe_generic_watchdog(struct ifnet*);
static void wanpipe_generic_start(struct ifnet *);
-static char *san_ifname_format = "san%d";
-
-
-
static sdla_t *
wanpipe_generic_getcard(struct ifnet *ifp)
{
@@ -111,7 +107,7 @@ wanpipe_generic_name(sdla_t *card, char *ifname, int len)
{
static int ifunit = 0;
- snprintf(ifname, len, san_ifname_format, ifunit++);
+ snprintf(ifname, len, "san%d", ifunit++);
return (0);
}