[BACK]Return to compat_getsubopt.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/compat_getsubopt.c between version 1.4 and 1.5

version 1.4, 2014/08/16 19:00:01 version 1.5, 2014/08/17 20:53:50
Line 6  int dummy;
Line 6  int dummy;
   
 #else  #else
   
   /*      $Id$    */
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
   
 /*-  /*-
Line 41  int dummy;
Line 42  int dummy;
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.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  int
 getsubopt(char **optionp, char * const *tokens, char **valuep)  getsubopt(char **optionp, char * const *tokens, char **valuep)
 {  {
         int cnt;          int cnt;
           char *suboptarg;
         char *p;          char *p;
   
         suboptarg = *valuep = NULL;          suboptarg = *valuep = NULL;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb