X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_resize.c;fp=src%2Frrd_resize.c;h=d429f1740403ac78872014a0220cff1657c287b3;hp=3613d3f2b8db8fb4e889563ea488b878a5e224b5;hb=586cc1f6f770892aa24f08e38a6c14c2c47ee560;hpb=23a7a9744b3f840f358e1c8e8483f93bd2bdf97f diff --git a/src/rrd_resize.c b/src/rrd_resize.c index 3613d3f..d429f17 100644 --- a/src/rrd_resize.c +++ b/src/rrd_resize.c @@ -21,7 +21,7 @@ int rrd_resize( unsigned long l, rra; long modify; unsigned long target_rra; - int grow = 0, shrink = 0; + int shrink = 0; char *endptr; rrd_file_t *rrd_file, *rrd_out_file; @@ -38,7 +38,7 @@ int rrd_resize( target_rra = strtol(argv[2], &endptr, 0); if (!strcmp(argv[3], "GROW")) - grow = 1; + shrink = 0; else if (!strcmp(argv[3], "SHRINK")) shrink = 1; else {