Motd reply fix.
[silc.git] / lib / contrib / getopt.c
index 7a4673b8d8db32e96c0449d8fccb507cb7446103..0b47ea7eccf78992d6fcd2f9233d86a104ee28fb 100644 (file)
    along with this program; if not, write to the Free Software
    Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 \f
-#ifdef HAVE_CONFIG_H
-#if defined (emacs) || defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
-   using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
-   (which it would do because it found this file in $srcdir).  */
-#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
 
 #ifndef __STDC__
 /* This is a separate conditional since some stdc systems
@@ -45,6 +35,7 @@
 #endif
 
 #include <stdio.h>
+#include <string.h>
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
@@ -470,7 +461,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
       int exact = 0;
       int ambig = 0;
       const struct option *pfound = NULL;
-      int indfound;
+      int indfound = 0;
 
       while (*s && *s != '=')
        s++;