Merge pull request #39 from tklauser/gcc-6
format: Add missing braces around 'if' clause
This commit is contained in:
commit
1c25eacc95
@ -131,10 +131,11 @@ static char *get_token(struct element_group *g, struct element *e,
|
|||||||
} else if (!strncasecmp(type, "rxrate:", 7)) {
|
} else if (!strncasecmp(type, "rxrate:", 7)) {
|
||||||
snprintf(buf, len, "%.2f", a->a_rx_rate.r_rate);
|
snprintf(buf, len, "%.2f", a->a_rx_rate.r_rate);
|
||||||
return buf;
|
return buf;
|
||||||
} else if (!strncasecmp(token+5, "txrate:", 7))
|
} else if (!strncasecmp(type, "txrate:", 7)) {
|
||||||
snprintf(buf, len, "%.2f", a->a_tx_rate.r_rate);
|
snprintf(buf, len, "%.2f", a->a_tx_rate.r_rate);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Unknown field \"%s\"\n", token);
|
fprintf(stderr, "Unknown field \"%s\"\n", token);
|
||||||
out:
|
out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user