[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: parsecmd.c
User: danmc
Date: 06/03/03 17:53:40
Modified: . parsecmd.c
Log:
remove a compiler warning on non-getopt_long systems (solaris)
Revision Changes Path
1.23 +2 -1 eda/geda/devel/gnetlist/src/parsecmd.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: parsecmd.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gnetlist/src/parsecmd.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- parsecmd.c 3 Mar 2006 19:35:52 -0000 1.22
+++ parsecmd.c 3 Mar 2006 22:53:40 -0000 1.23
@@ -118,10 +118,11 @@
int parse_commandline(int argc, char *argv[])
{
int ch;
- int option_index = 0;
/* Converted to getopt_long by SDB 3.3.2006 */
#ifdef HAVE_GETOPT_LONG
+ int option_index = 0;
+
while ((ch = getopt_long(argc, argv, OPTIONS, long_options, &option_index)) != -1) {
#else
while ((ch = getopt(argc, argv, OPTIONS)) != -1) {