summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/whois.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpctl/whois.c')
-rw-r--r--usr.sbin/bgpctl/whois.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/bgpctl/whois.c b/usr.sbin/bgpctl/whois.c
index f14d07d8ed7..1128768f327 100644
--- a/usr.sbin/bgpctl/whois.c
+++ b/usr.sbin/bgpctl/whois.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: whois.c,v 1.4 2009/09/08 15:40:25 claudio Exp $ */
+/* $OpenBSD: whois.c,v 1.5 2013/10/27 18:49:25 guenther Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -82,7 +82,6 @@ whois(const char *query, enum qtype qtype)
int s, r = -1, error = 0, attempt, ret;
struct addrinfo hints, *res, *ai;
const char *reason = NULL;
- char *fmt;
memset(&hints, 0, sizeof(hints));
hints.ai_flags = 0;
@@ -137,8 +136,7 @@ whois(const char *query, enum qtype qtype)
sfw = fdopen(s, "w");
if (sfr == NULL || sfw == NULL)
err(1, "fdopen");
- fmt = "%s %s %s\r\n";
- fprintf(sfw, fmt, WHOIS_STDOPTS, qtype_opts[qtype], query);
+ fprintf(sfw, "%s %s %s\r\n", WHOIS_STDOPTS, qtype_opts[qtype], query);
fflush(sfw);
if ((ret = parse_response(sfr, qtype)) == -1)