From: <svn...@op...> - 2009-05-11 11:13:34
|
Author: bellmich Date: Mon May 11 13:13:21 2009 New Revision: 211 URL: http://libwbxml.opensync.org/changeset/211 Log: commented out variable optopt - the variable is not used - the variable causes trouble on the Debian MIPS port Modified: wbxml2/trunk/tools/attgetopt.c wbxml2/trunk/tools/getopt.h Modified: wbxml2/trunk/tools/attgetopt.c ============================================================================== --- wbxml2/trunk/tools/attgetopt.c Fri Apr 24 16:48:41 2009 (r210) +++ wbxml2/trunk/tools/attgetopt.c Mon May 11 13:13:21 2009 (r211) @@ -27,7 +27,9 @@ #include <string.h> int optind = 1; +/* useless variable int optopt; +*/ char *optarg; int @@ -55,7 +57,10 @@ } + /* useless variable: optopt optopt = c = argv[optind][sp]; + */ + c = argv[optind][sp]; /* Check for invalid option */ if (c == ':' || (cp = strchr(opts, c)) == NULL) { Modified: wbxml2/trunk/tools/getopt.h ============================================================================== --- wbxml2/trunk/tools/getopt.h Fri Apr 24 16:48:41 2009 (r210) +++ wbxml2/trunk/tools/getopt.h Mon May 11 13:13:21 2009 (r211) @@ -11,7 +11,9 @@ int wbxml_getopt(int argc, char **argv, char *opts); extern int optind; +/* useless variable extern int optopt; +*/ extern char *optarg; #endif |