summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1e34eee)
Also fixes a shadowed local variable warning.
return count;
} /* count_chars */
return count;
} /* count_chars */
-static int array_grow (void **array, int *array_len, size_t elem_size)
+static int array_grow (void **array, size_t *array_len, size_t elem_size)
int timeout = -1;
lcc_identifier_t *identifiers = NULL;
int timeout = -1;
lcc_identifier_t *identifiers = NULL;
- int identifiers_num = 0;
+ size_t identifiers_num = 0;
+ size_t plugins_num = 0;
values_types[values_len] = LCC_TYPE_GAUGE;
}
else { /* integer */
values_types[values_len] = LCC_TYPE_GAUGE;
}
else { /* integer */
- values[values_len].counter = strtol (value, &endptr, 0);
+ values[values_len].counter = (counter_t) strtoull (value, &endptr, 0);
values_types[values_len] = LCC_TYPE_COUNTER;
}
++values_len;
values_types[values_len] = LCC_TYPE_COUNTER;
}
++values_len;
- c = getopt (argc, argv, "s:h");
+ opt = getopt (argc, argv, "s:h");
case 's':
snprintf (address, sizeof (address), "unix:%s", optarg);
address[sizeof (address) - 1] = '\0';
case 's':
snprintf (address, sizeof (address), "unix:%s", optarg);
address[sizeof (address) - 1] = '\0';