diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-18 03:44:07 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-18 03:44:07 +0000 |
commit | 1e7cda9b25e364fa644b87b78fe8f81b189a9493 (patch) | |
tree | 09462eb523569ee9d764a387e6a0acb9b14f403d /usr.sbin/dhcp/dhclient | |
parent | ce05b867a48a0ab6a5bad5700ca7c6497dd7ac79 (diff) |
format string audit. From: Gregory Steuck <greg@nest.cx>
Diffstat (limited to 'usr.sbin/dhcp/dhclient')
-rw-r--r-- | usr.sbin/dhcp/dhclient/clparse.c | 2 | ||||
-rw-r--r-- | usr.sbin/dhcp/dhclient/dhclient.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/dhcp/dhclient/clparse.c b/usr.sbin/dhcp/dhclient/clparse.c index 5f112c10872..bdce34d7814 100644 --- a/usr.sbin/dhcp/dhclient/clparse.c +++ b/usr.sbin/dhcp/dhclient/clparse.c @@ -383,7 +383,7 @@ int parse_option_list (cfile, list) break; } if (i == 256) { - parse_warn ("%s: expected option name."); + parse_warn ("%s: unexpected option name.", val); skip_to_semi (cfile); return 0; } diff --git a/usr.sbin/dhcp/dhclient/dhclient.c b/usr.sbin/dhcp/dhclient/dhclient.c index 4ab63408cdb..4032192d763 100644 --- a/usr.sbin/dhcp/dhclient/dhclient.c +++ b/usr.sbin/dhcp/dhclient/dhclient.c @@ -307,10 +307,10 @@ static void usage (appname) note("%s", message); note("%s", copyright); note("%s", arr); - note(""); + note("%s", ""); note("%s", contrib); note("%s", url); - note(""); + note("%s", ""); warn("Usage: %s [-c1u] [-p <port>] [-lf lease-file]", appname); error(" [-pf pidfile] [interface]"); @@ -1111,7 +1111,7 @@ void send_discover (ipp) ip->client->packet.secs = htons (65535); ip->client->secs = ip->client->packet.secs; - note ("DHCPDISCOVER on %s to %s port %d interval %ld", + note ("DHCPDISCOVER on %s to %s port %d interval %d", ip->name, inet_ntoa (sockaddr_broadcast.sin_addr), ntohs (sockaddr_broadcast.sin_port), ip->client->interval); |