=================================================================== RCS file: /cvs/mandoc/compat_getsubopt.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- mandoc/compat_getsubopt.c 2014/08/16 19:00:01 1.4 +++ mandoc/compat_getsubopt.c 2014/08/17 20:53:50 1.5 @@ -6,7 +6,8 @@ int dummy; #else -/* $OpenBSD: compat_getsubopt.c,v 1.4 2014/08/16 19:00:01 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;