projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_latency.[ch]: get_rate(): Make lower bound exclusive.
[collectd.git]
/
src
/
utils_cmds.c
diff --git
a/src/utils_cmds.c
b/src/utils_cmds.c
index
f667596
..
1f53ad1
100644
(file)
--- a/
src/utils_cmds.c
+++ b/
src/utils_cmds.c
@@
-49,7
+49,7
@@
static cmd_status_t cmd_split (char *buffer,
size_t *ret_len, char ***ret_fields,
cmd_error_handler_t *err)
{
size_t *ret_len, char ***ret_fields,
cmd_error_handler_t *err)
{
- char *
string, *
field;
+ char *field;
bool in_field, in_quotes;
size_t estimate, len;
bool in_field, in_quotes;
size_t estimate, len;
@@
-57,7
+57,7
@@
static cmd_status_t cmd_split (char *buffer,
estimate = 0;
in_field = false;
estimate = 0;
in_field = false;
- for (string = buffer; *string != '\0'; ++string)
+ for (
char *
string = buffer; *string != '\0'; ++string)
{
/* Make a quick worst-case estimate of the number of fields by
* counting spaces and ignoring quotation marks. */
{
/* Make a quick worst-case estimate of the number of fields by
* counting spaces and ignoring quotation marks. */
@@
-102,7
+102,7
@@
static cmd_status_t cmd_split (char *buffer,
field = NULL;
in_field = false;
in_quotes = false;
field = NULL;
in_field = false;
in_quotes = false;
- for (string = buffer; *string != '\0'; string++)
+ for (
char *
string = buffer; *string != '\0'; string++)
{
if (isspace ((int)string[0]))
{
{
if (isspace ((int)string[0]))
{