X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=ee11c45da0753ab61f6eafc8035883ebe0482410;hb=db35efb33e81d0a013e09a8a6ffa362ad5962f7c;hp=febc99833aaa917f084e4d606e34a84c70b90fb4;hpb=0d9a0eb065fda6f89fc597e760ae56edd47337d9;p=collectd.git diff --git a/src/collectdctl.c b/src/collectdctl.c index febc9983..ee11c45d 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -72,6 +72,7 @@ extern char *optarg; extern int optind; +__attribute__((noreturn)) static void exit_usage (const char *name, int status) { fprintf ((status == 0) ? stdout : stderr, "Usage: %s [options] [cmd options]\n\n" @@ -482,7 +483,7 @@ static int putval (lcc_connection_t *c, int argc, char **argv) values_len = 0; value = tmp; - while (value != 0) { + while (value != NULL) { char *dot, *endptr; tmp = strchr (value, (int)':');