projects
/
rrdtool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d19d9d
)
src/rrd_update.c: Use `-d' rather than `-s' as short option for `--daemon'.
author
Florian Forster
<octo@leeloo.home.verplant.org>
Tue, 24 Jun 2008 18:51:45 +0000
(20:51 +0200)
committer
Florian Forster
<octo@leeloo.home.verplant.org>
Tue, 24 Jun 2008 18:51:45 +0000
(20:51 +0200)
src/rrd_update.c
patch
|
blob
|
history
diff --git
a/src/rrd_update.c
b/src/rrd_update.c
index
e00cfd2
..
d978822
100644
(file)
--- a/
src/rrd_update.c
+++ b/
src/rrd_update.c
@@
-415,7
+415,7
@@
int rrd_update(
{"template", required_argument, 0, 't'},
{"cache", optional_argument, 0, 'c'},
{"nocache", no_argument , 0, 'n'},
{"template", required_argument, 0, 't'},
{"cache", optional_argument, 0, 'c'},
{"nocache", no_argument , 0, 'n'},
- {"daemon", required_argument, 0, '
s
'},
+ {"daemon", required_argument, 0, '
d
'},
{0, 0, 0, 0}
};
int option_index = 0;
{0, 0, 0, 0}
};
int option_index = 0;
@@
-430,7
+430,7
@@
int rrd_update(
opterr = 0; /* initialize getopt */
while (1) {
opterr = 0; /* initialize getopt */
while (1) {
- opt = getopt_long(argc, argv, "t:", long_options, &option_index);
+ opt = getopt_long(argc, argv, "t:
cnd:
", long_options, &option_index);
if (opt == EOF)
break;
if (opt == EOF)
break;
@@
-462,7
+462,7
@@
int rrd_update(
force_cache = -1;
break;
force_cache = -1;
break;
- case '
s
':
+ case '
d
':
if (daemon_address != NULL)
free (daemon_address);
daemon_address = strdup (optarg);
if (daemon_address != NULL)
free (daemon_address);
daemon_address = strdup (optarg);