From 3c25a35ea45b5de4d8cb21775000602310ffbe1e Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 29 Mar 2010 16:23:33 +0000 Subject: [PATCH] rename chunk option from -m to -a -- tobi git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2054 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/librrd.sym.in.in | 2 ++ program/src/rrd_daemon.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/program/src/librrd.sym.in.in b/program/src/librrd.sym.in.in index a4b9a088..3d632818 100644 --- a/program/src/librrd.sym.in.in +++ b/program/src/librrd.sym.in.in @@ -1,5 +1,7 @@ rrd_add_ptr rrd_add_strdup +rrd_add_ptr_chunk +rrd_add_strdup_chunk rrd_clear_error rrd_close rrd_create diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index 9b8d9ee3..ef6d83cb 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -2780,7 +2780,7 @@ static int read_options (int argc, char **argv) /* {{{ */ gid_t socket_group = (gid_t)-1; mode_t socket_permissions = (mode_t)-1; - while ((option = getopt(argc, argv, "gl:s:m:P:f:w:z:t:Bb:p:Fj:m:h?")) != -1) + while ((option = getopt(argc, argv, "gl:s:m:P:f:w:z:t:Bb:p:Fj:a:h?")) != -1) { switch (option) { @@ -3088,7 +3088,7 @@ static int read_options (int argc, char **argv) /* {{{ */ } break; - case 'm': + case 'a': { int temp = atoi(optarg); if (temp > 0) @@ -3096,7 +3096,7 @@ static int read_options (int argc, char **argv) /* {{{ */ else { fprintf(stderr, "Invalid allocation size: %s\n", optarg); - status = 10; + return 10; } } break; @@ -3127,6 +3127,7 @@ static int read_options (int argc, char **argv) /* {{{ */ "for that group)\n" " -m File permissions (octal) of all following UNIX " "sockets\n" + " -a Memory allocation chunk size. Default is 1." "\n" "For more information and a detailed description of all options " "please refer\n" -- 2.30.2