diff options
Diffstat (limited to 'contrib/mdocml/compat_getsubopt.c')
-rw-r--r-- | contrib/mdocml/compat_getsubopt.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/contrib/mdocml/compat_getsubopt.c b/contrib/mdocml/compat_getsubopt.c index 9cd4153..880f2f7 100644 --- a/contrib/mdocml/compat_getsubopt.c +++ b/contrib/mdocml/compat_getsubopt.c @@ -1,13 +1,12 @@ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif -#ifdef HAVE_GETSUBOPT +#if HAVE_GETSUBOPT int dummy; #else +/* $Id: compat_getsubopt.c,v 1.5 2014/08/17 20:53:50 schwarze Exp $ */ /* $OpenBSD: getsubopt.c,v 1.4 2005/08/08 08:05:36 espie Exp $ */ /*- @@ -43,18 +42,11 @@ int dummy; #include <stdlib.h> #include <string.h> -/* - * The SVID interface to getsubopt provides no way of figuring out which - * part of the suboptions list wasn't matched. This makes error messages - * tricky... The extern variable suboptarg is a pointer to the token - * which didn't match. - */ -char *suboptarg; - int getsubopt(char **optionp, char * const *tokens, char **valuep) { int cnt; + char *suboptarg; char *p; suboptarg = *valuep = NULL; |