diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-11-10 19:57:47 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-11-10 19:57:47 +0000 |
commit | 2ed8dc12cd5ffbbff9cd25e928a720be3596f2af (patch) | |
tree | 994d80cb32bb77ad0f380f9254a7e3171d2ec051 /interface.c | |
parent | 13c27199231cbc2cc83969ada741b95be1cca4d3 (diff) | |
download | fetchmail-2ed8dc12cd5ffbbff9cd25e928a720be3596f2af.tar.gz fetchmail-2ed8dc12cd5ffbbff9cd25e928a720be3596f2af.tar.bz2 fetchmail-2ed8dc12cd5ffbbff9cd25e928a720be3596f2af.zip |
Clean up the horrible HAVE_[V]SNPRINTF mess, use Trio on systems that lack
real snprintf or vsnprintf.
svn path=/trunk/; revision=3996
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 7 |
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)) { |