src/rrd_update.c: Use `-d' rather than `-s' as short option for `--daemon'.
authorFlorian Forster <octo@leeloo.home.verplant.org>
Tue, 24 Jun 2008 18:51:45 +0000 (20:51 +0200)
committerFlorian Forster <octo@leeloo.home.verplant.org>
Tue, 24 Jun 2008 18:51:45 +0000 (20:51 +0200)
src/rrd_update.c

index e00cfd2..d978822 100644 (file)
@@ -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);