From 2ed8dc12cd5ffbbff9cd25e928a720be3596f2af Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 10 Nov 2004 19:57:47 +0000 Subject: Clean up the horrible HAVE_[V]SNPRINTF mess, use Trio on systems that lack real snprintf or vsnprintf. svn path=/trunk/; revision=3996 --- interface.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'interface.c') 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)) { -- cgit v1.2.3