]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/getopt.c
Fix Winsock-related warning and/or bugs.
[openldap] / libraries / liblutil / getopt.c
index d1d1345a64c4ed770eb845b4aa7a94bd66e69545..3b0ca476a5b59a55099101733c5eb95d4a854d4a 100644 (file)
@@ -1,3 +1,8 @@
+/* $OpenLDAP$ */
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 /*
        getopt.c
 
@@ -27,7 +32,7 @@ int optind = 1;
 int optopt;
 char * optarg;
 
-static void ERR (char ** argv, char * s, char c)
+static void ERR (char * const argv[], const char * s, char c)
 {
        char errbuf[2];
 
@@ -44,7 +49,7 @@ printf("DF_TRACE_DEBUG:       static void ERR () in getopt.c\n");
        }
 }
 
-int getopt (int argc, char ** argv, char * opts)
+int getopt (int argc, char * const argv [], const char * opts)
 {
        static int sp = 1, error = (int) '?';
        static char sw = '-', eos = '\0', arg = ':';