summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/parse.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-06-10 17:56:29 +0000
committerkrw <krw@openbsd.org>2017-06-10 17:56:29 +0000
commit30365871ca366d71f703d16b474dcaa8060db847 (patch)
tree8855bad62f921145c83335fbf0510a4636eb2539 /sbin/dhclient/parse.c
parentReduce false positives for the "no blank before trailing delimiter" message. (diff)
downloadwireguard-openbsd-30365871ca366d71f703d16b474dcaa8060db847.tar.xz
wireguard-openbsd-30365871ca366d71f703d16b474dcaa8060db847.zip
Nuke unused global warnings_occurred.
Diffstat (limited to 'sbin/dhclient/parse.c')
-rw-r--r--sbin/dhclient/parse.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c
index 082f15fd4ee..6604e5c8c0d 100644
--- a/sbin/dhclient/parse.c
+++ b/sbin/dhclient/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.50 2017/04/09 20:44:13 krw Exp $ */
+/* $OpenBSD: parse.c,v 1.51 2017/06/10 17:56:29 krw Exp $ */
/* Common parser code for dhcpd and dhclient. */
@@ -418,8 +418,6 @@ parse_date(FILE *cfile)
return (guess);
}
-int warnings_occurred;
-
void
parse_warn(char *msg)
{
@@ -438,6 +436,4 @@ parse_warn(char *msg)
}
}
log_warnx("%s^", spaces);
-
- warnings_occurred = 1;
}