diff options
author | Denis Vlasenko | 2007-01-01 06:00:38 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-01 06:00:38 +0000 |
commit | e27f15615f93065265209e26ff07cf9b4ae8658c (patch) | |
tree | 5805f241da3209c688019920bcc179cfad2b31f1 /networking | |
parent | d1a302b52f11563240db5313344a1331613e1538 (diff) | |
download | busybox-e27f15615f93065265209e26ff07cf9b4ae8658c.zip busybox-e27f15615f93065265209e26ff07cf9b4ae8658c.tar.gz |
msh: double "static char line[LINELIM]" etc deleted.
massive amounts of assignments-in-ifs deleted
(some of which were VERY nasty)
Diffstat (limited to 'networking')
-rw-r--r-- | networking/libiproute/rt_names.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/rt_names.c b/networking/libiproute/rt_names.c index 69eb55e..686326f 100644 --- a/networking/libiproute/rt_names.c +++ b/networking/libiproute/rt_names.c @@ -228,7 +228,7 @@ int rtnl_rtrealm_a2n(uint32_t *id, char *arg) #if ENABLE_FEATURE_IP_RULE const char* rtnl_rtrealm_n2a(int id, char *buf, int len) { - if (id<0 || id>=256) { + if (id < 0 || id >= 256) { snprintf(buf, len, "%d", id); return buf; } @@ -257,7 +257,7 @@ static void rtnl_rtdsfield_initialize(void) const char * rtnl_dsfield_n2a(int id, char *buf, int len) { - if (id<0 || id>=256) { + if (id < 0 || id >= 256) { snprintf(buf, len, "%d", id); return buf; } |