projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renaming ntmake.pl to ntmake.PL (r1742) had unforseen side effects. At least
[rrdtool.git]
/
src
/
rrd_getopt.c
diff --git
a/src/rrd_getopt.c
b/src/rrd_getopt.c
index
50a61e8
..
dbb3f3f
100644
(file)
--- a/
src/rrd_getopt.c
+++ b/
src/rrd_getopt.c
@@
-30,7
+30,8
@@
#define _NO_PROTO
#endif
#define _NO_PROTO
#endif
-#if !defined (__STDC__) || !__STDC__
+
+#if !defined WIN32 && (!defined (__STDC__) || !__STDC__)
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
#ifndef const
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
#ifndef const
@@
-207,11
+208,7
@@
static char *posixly_correct;
char *getenv(
);
char *getenv(
);
-static char *my_index(
- str,
- chr)
- const char *str;
- int chr;
+static char* my_index(const char* str, int chr)
{
while (*str) {
if (*str == chr)
{
while (*str) {
if (*str == chr)
@@
-288,9
+285,7
@@
static void exchange(
char **);
#endif
char **);
#endif
-static void exchange(
- argv)
- char **argv;
+static void exchange(char** argv)
{
int bottom = first_nonopt;
int middle = last_nonopt;
{
int bottom = first_nonopt;
int middle = last_nonopt;
@@
-346,13
+341,9
@@
static const char *_getopt_initialize(
char *const *,
const char *);
#endif
char *const *,
const char *);
#endif
-static const char *_getopt_initialize(
- argc,
- argv,
- optstring)
- int argc;
- char *const *argv;
- const char *optstring;
+static const char* _getopt_initialize(int argc,
+ char** argv,
+ const char* optstring)
{
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
{
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
@@
-455,19
+446,12
@@
static const char *_getopt_initialize(
If LONG_ONLY is nonzero, '-' as well as '--' can introduce
long-named options. */
If LONG_ONLY is nonzero, '-' as well as '--' can introduce
long-named options. */
-int _getopt_internal(
- argc,
- argv,
- optstring,
- longopts,
- longind,
- long_only)
- int argc;
- char *const *argv;
- const char *optstring;
- const struct option *longopts;
- int *longind;
- int long_only;
+int _getopt_internal(int argc,
+ char** argv,
+ const char *optstring,
+ const struct option *longopts,
+ int* longind,
+ int long_only)
{
optarg = NULL;
{
optarg = NULL;
@@
-868,12
+852,9
@@
int _getopt_internal(
}
int getopt(
}
int getopt(
- argc,
- argv,
- optstring)
- int argc;
- char *const *argv;
- const char *optstring;
+ int argc,
+ char** argv,
+ const char* optstring)
{
return _getopt_internal(argc, argv, optstring,
(const struct option *) 0, (int *) 0, 0);
{
return _getopt_internal(argc, argv, optstring,
(const struct option *) 0, (int *) 0, 0);