aboutsummaryrefslogtreecommitdiffstats
path: root/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/interface.c b/interface.c
index a70e6104..4c9dde32 100644
--- a/interface.c
+++ b/interface.c
@@ -268,12 +268,7 @@ get_ifinfo(const char *ifname, ifinfo_t *ifinfo)
{
kvm_read(kvmfd, ifnet_addr, &ifnet, sizeof(ifnet));
kvm_read(kvmfd, (unsigned long) ifnet.if_name, tname, sizeof tname);
-#ifdef HAVE_SNPRINTF
- snprintf(tname, sizeof tname,
-#else
- sprintf(tname,
-#endif
- "%s%d", tname, ifnet.if_unit);
+ snprintf(tname, sizeof tname, "%s%d", tname, ifnet.if_unit);
if (!strcmp(tname, iname))
{