X-Git-Url: https://git.tokkee.org/?p=rrdtool-all.git;a=blobdiff_plain;f=program%2Fsrc%2Frrd_resize.c;h=d429f1740403ac78872014a0220cff1657c287b3;hp=3613d3f2b8db8fb4e889563ea488b878a5e224b5;hb=a94f3a5075ac5d15b23f281b19ce28ac6904ffbd;hpb=e1ba8defafe0889cd1479ed829edb6a6bcfc4334 diff --git a/program/src/rrd_resize.c b/program/src/rrd_resize.c index 3613d3f2..d429f174 100644 --- a/program/src/rrd_resize.c +++ b/program/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 {