Fix a bunch of compiler warnings (mainly MinGW).
[platform/upstream/flac.git] / src / share / getopt / getopt.c
index f25a830..968bf2f 100644 (file)
@@ -220,13 +220,11 @@ static char *posixly_correct;
    whose names are inconsistent.  */
 
 #ifndef getenv
-extern char *getenv ();
+extern char *getenv (const char * name);
 #endif
 
 static char *
-my_index (str, chr)
-     const char *str;
-     int chr;
+my_index (const char *str, int chr)
 {
   while (*str)
     {