summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/rt_names.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/rt_names.c b/networking/libiproute/rt_names.c
index 69eb55e79..686326ff9 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)
228#if ENABLE_FEATURE_IP_RULE 228#if ENABLE_FEATURE_IP_RULE
229const char* rtnl_rtrealm_n2a(int id, char *buf, int len) 229const char* rtnl_rtrealm_n2a(int id, char *buf, int len)
230{ 230{
231 if (id<0 || id>=256) { 231 if (id < 0 || id >= 256) {
232 snprintf(buf, len, "%d", id); 232 snprintf(buf, len, "%d", id);
233 return buf; 233 return buf;
234 } 234 }
@@ -257,7 +257,7 @@ static void rtnl_rtdsfield_initialize(void)
257 257
258const char * rtnl_dsfield_n2a(int id, char *buf, int len) 258const char * rtnl_dsfield_n2a(int id, char *buf, int len)
259{ 259{
260 if (id<0 || id>=256) { 260 if (id < 0 || id >= 256) {
261 snprintf(buf, len, "%d", id); 261 snprintf(buf, len, "%d", id);
262 return buf; 262 return buf;
263 } 263 }