PATCH: tools/wrc/wrc.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tested on SuSE Linux 8.1 and FreeBSD 4.7.

Gerald


ChangeLog:
Declare variable only if needed.

Index: wrc.c
===================================================================
RCS file: /home/wine/wine/tools/wrc/wrc.c,v
retrieving revision 1.25
diff -u -3 -p -r1.25 wrc.c
--- wrc.c	20 Jan 2003 23:29:27 -0000	1.25
+++ wrc.c	22 Jan 2003 21:53:51 -0000
@@ -280,7 +280,10 @@ int main(int argc,char *argv[])
 {
 	extern char* optarg;
 	extern int   optind;
-	int optc, opti = 0;
+	int optc;
+#ifdef HAVE_GETOPT_LONG
+	int opti = 0;
+#endif
 	int stdinc = 1;
 	int lose = 0;
 	int ret;


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux