=================================================================== RCS file: /cvs/mandoc/compat_getsubopt.c,v retrieving revision 1.3 retrieving revision 1.5 diff -u -p -r1.3 -r1.5 --- mandoc/compat_getsubopt.c 2014/08/10 23:54:41 1.3 +++ mandoc/compat_getsubopt.c 2014/08/17 20:53:50 1.5 @@ -1,12 +1,13 @@ #include "config.h" -#ifdef HAVE_GETSUBOPT +#if HAVE_GETSUBOPT int dummy; #else -/* $OpenBSD: compat_getsubopt.c,v 1.3 2014/08/10 23:54:41 schwarze Exp $ */ +/* $Id: compat_getsubopt.c,v 1.5 2014/08/17 20:53:50 schwarze Exp $ */ +/* $OpenBSD: compat_getsubopt.c,v 1.5 2014/08/17 20:53:50 schwarze Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,18 +42,11 @@ int dummy; #include #include -/* - * 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;