X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=d019d2742f3db6bef5d98f653ed144cdf4a42895;hb=aedf67e69cbe93a6925fd1004a7c8b990aed4b0a;hp=8357ce841838cad2f85238b5bbe3ba1758e1db43;hpb=d5565943cd7ee338e5b750a027faff8115df4c72;p=collectd.git diff --git a/src/collectdctl.c b/src/collectdctl.c index 8357ce84..d019d274 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';