X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_getopt.c;fp=src%2Frrd_getopt.c;h=0556c86a82602e2a3ea5c413d4e17cbd56a8a181;hp=a74ff88de7a6bcc140c492cd2da5d5158414d471;hb=d372ef83ee1b95f5263f80258b1cb750249ea89f;hpb=bbee4e31db966702d6fa3d7f4907b14aa1cb5aba diff --git a/src/rrd_getopt.c b/src/rrd_getopt.c index a74ff88..0556c86 100644 --- a/src/rrd_getopt.c +++ b/src/rrd_getopt.c @@ -360,7 +360,7 @@ static const char *_getopt_initialize( const char *); #endif static const char* _getopt_initialize(int argc, - char** argv, + char* const* argv, const char* optstring) { /* Start processing options with ARGV-element 1 (since ARGV-element 0 @@ -465,7 +465,7 @@ static const char* _getopt_initialize(int argc, long-named options. */ int _getopt_internal(int argc, - char** argv, + char* const* argv, const char *optstring, const struct option *longopts, int* longind, @@ -869,15 +869,6 @@ int _getopt_internal(int argc, } } -int getopt( - int argc, - char** argv, - const char* optstring) -{ - return _getopt_internal(argc, argv, optstring, - (const struct option *) 0, (int *) 0, 0); -} - #endif /* Not ELIDE_CODE. */ #ifdef TEST