From: Florian Forster Date: Tue, 24 Jun 2008 18:51:45 +0000 (+0200) Subject: src/rrd_update.c: Use `-d' rather than `-s' as short option for `--daemon'. X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=281fbf789dc6655b8ba6c7e5726e8a39d0a7503a src/rrd_update.c: Use `-d' rather than `-s' as short option for `--daemon'. --- diff --git a/src/rrd_update.c b/src/rrd_update.c index e00cfd2..d978822 100644 --- 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'}, - {"daemon", required_argument, 0, 's'}, + {"daemon", required_argument, 0, 'd'}, {0, 0, 0, 0} }; int option_index = 0; @@ -430,7 +430,7 @@ int rrd_update( 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; @@ -462,7 +462,7 @@ int rrd_update( force_cache = -1; break; - case 's': + case 'd': if (daemon_address != NULL) free (daemon_address); daemon_address = strdup (optarg);