* make rrd_getopt compile on solaris
[rrdtool.git] / src / rrd_getopt1.c
index 1ace77e..32e5491 100644 (file)
@@ -66,7 +66,7 @@
 #endif
 
 int getopt_long(int argc,
 #endif
 
 int getopt_long(int argc,
-                char** argv,
+                char* const* argv,
                 const char* options,
                 const struct option* long_options,
                 int* opt_index)
                 const char* options,
                 const struct option* long_options,
                 int* opt_index)
@@ -80,7 +80,7 @@ int getopt_long(int argc,
    instead.  */
 
 int getopt_long_only(int argc,
    instead.  */
 
 int getopt_long_only(int argc,
-                     char** argv,
+                     char* const* argv,
                      const char* options,
                      const struct option* long_options,
                      int* opt_index)
                      const char* options,
                      const struct option* long_options,
                      int* opt_index)