diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-28 01:22:57 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-28 01:22:57 +0100 |
commit | 1d3a04a3a4be8682d4317251fc14e81ad655d58a (patch) | |
tree | 2ee72930778afa3a223327fec714c81d936f82dc /networking/tc.c | |
parent | 038a977d47c99c3e59d7a2393799b2afa838604c (diff) | |
download | busybox-w32-1d3a04a3a4be8682d4317251fc14e81ad655d58a.tar.gz busybox-w32-1d3a04a3a4be8682d4317251fc14e81ad655d58a.tar.bz2 busybox-w32-1d3a04a3a4be8682d4317251fc14e81ad655d58a.zip |
Code style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tc.c')
-rw-r--r-- | networking/tc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/tc.c b/networking/tc.c index 271d569e4..25875aa3e 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -116,7 +116,7 @@ static int get_qdisc_handle(uint32_t *h, const char *str) { | |||
116 | char *p; | 116 | char *p; |
117 | 117 | ||
118 | maj = TC_H_UNSPEC; | 118 | maj = TC_H_UNSPEC; |
119 | if (!strcmp(str, "none")) | 119 | if (strcmp(str, "none") == 0) |
120 | goto ok; | 120 | goto ok; |
121 | maj = strtoul(str, &p, 16); | 121 | maj = strtoul(str, &p, 16); |
122 | if (p == str) | 122 | if (p == str) |
@@ -135,10 +135,10 @@ static int get_tc_classid(uint32_t *h, const char *str) { | |||
135 | char *p; | 135 | char *p; |
136 | 136 | ||
137 | maj = TC_H_ROOT; | 137 | maj = TC_H_ROOT; |
138 | if (!strcmp(str, "root")) | 138 | if (strcmp(str, "root") == 0) |
139 | goto ok; | 139 | goto ok; |
140 | maj = TC_H_UNSPEC; | 140 | maj = TC_H_UNSPEC; |
141 | if (!strcmp(str, "none")) | 141 | if (strcmp(str, "none") == 0) |
142 | goto ok; | 142 | goto ok; |
143 | maj = strtoul(str, &p, 16); | 143 | maj = strtoul(str, &p, 16); |
144 | if (p == str) { | 144 | if (p == str) { |