X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=478f2a4b4172d77079bee5aeecef15c78bd396f8;hb=89fc8d1d16779841bd693020d9035aa5f35f127d;hp=0b8d0c1e89ee1547f955c0795bf388d1568eb518;hpb=8d913d388c069a43ca92683b60c86607630ee9bd;p=collectd.git diff --git a/src/collectdctl.c b/src/collectdctl.c index 0b8d0c1e..478f2a4b 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -551,14 +551,14 @@ int main (int argc, char **argv) { int status; while (42) { - int c; + int n; - c = getopt (argc, argv, "s:h"); + n = getopt (argc, argv, "s:h"); - if (c == -1) + if (n == -1) break; - switch (c) { + switch (n) { case 's': snprintf (address, sizeof (address), "unix:%s", optarg); address[sizeof (address) - 1] = '\0';