summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2016-04-28 23:10:39 +0200
committerThomas Graf <tgraf@suug.ch>2016-04-28 23:10:39 +0200
commit1c25eacc95d209716084d9fb28db4c7340b74471 (patch)
treebb7a37ddff73ab12bb082e583054c292d5ea0581
parentcc22e4e35d95f309ad55b35bedca06ecabfeb014 (diff)
parentf177718f24c050c458f9ec8f944a8f2cea92b372 (diff)
Merge pull request #39 from tklauser/gcc-6
format: Add missing braces around 'if' clause
-rw-r--r--src/out_format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/out_format.c b/src/out_format.c
index d9d5e36..aea38c5 100644
--- a/src/out_format.c
+++ b/src/out_format.c
@@ -131,9 +131,10 @@ static char *get_token(struct element_group *g, struct element *e,
} else if (!strncasecmp(type, "rxrate:", 7)) {
snprintf(buf, len, "%.2f", a->a_rx_rate.r_rate);
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);
return buf;
+ }
}
fprintf(stderr, "Unknown field \"%s\"\n", token);