diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-12-04 19:24:04 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-12-04 19:24:04 +0000 |
commit | 0360b5844fced3950f93dd48956263e3c61bcdd9 (patch) | |
tree | bd95a817b825106e554977a57c6c89f39636708b /sbin/dhclient/dhcpd.h | |
parent | 88c41f8abbe91b0c05088f347532ff624af55472 (diff) |
Eliminate hand-rolled pseudo-strerror() %m strangeness by replacing
all occurances of %m with strerror(errno). And then nuking do_percentm()
and related buffer shuffling.
Also simplify parse_warn() so it takes a simple char * of the error,
and thus rely on pointing to error location in input for details.
Makes sense to beck@
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r-- | sbin/dhclient/dhcpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 4315f3b5faa..5bf46c5cdb5 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.96 2012/12/02 17:03:19 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.97 2012/12/04 19:24:03 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -211,7 +211,7 @@ int note(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); #ifdef DEBUG int debug(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); #endif -int parse_warn(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); +int parse_warn(char *); /* conflex.c */ extern int lexline, lexchar; |