X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=d019d2742f3db6bef5d98f653ed144cdf4a42895;hb=1fc00932fd49fa535551cc4bba09c4e4be059ab4;hp=61b7fc55e2c24ff880730580abf2d48e0e0f571d;hpb=9cbc0fe63abd2bd3658b42f19ee144f803b658fa;p=collectd.git diff --git a/src/collectdctl.c b/src/collectdctl.c index 61b7fc55..d019d274 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -65,7 +65,7 @@ # endif #endif /* NAN_ZERO_ZERO */ -#include "libcollectdclient/client.h" +#include "libcollectdclient/collectd/client.h" #define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock" @@ -98,8 +98,8 @@ static void exit_usage (const char *name, int status) { "Hostname defaults to the local hostname if omitted (e.g., uptime/uptime).\n" "No error is returned if the specified identifier does not exist.\n" - "\n"PACKAGE" "VERSION", http://collectd.org/\n" - "by Florian octo Forster \n" + "\n"PACKAGE_NAME" "PACKAGE_VERSION", http://collectd.org/\n" + "by Florian octo Forster \n" "for contributions see `AUTHORS'\n" , name); exit (status); @@ -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';