aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/rt_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/rt_names.c')
-rw-r--r--networking/libiproute/rt_names.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/networking/libiproute/rt_names.c b/networking/libiproute/rt_names.c
index 686326ff9..797c83b4e 100644
--- a/networking/libiproute/rt_names.c
+++ b/networking/libiproute/rt_names.c
@@ -13,7 +13,7 @@
13#include "libbb.h" 13#include "libbb.h"
14#include "rt_names.h" 14#include "rt_names.h"
15 15
16static void rtnl_tab_initialize(char *file, const char **tab, int size) 16static void rtnl_tab_initialize(const char *file, const char **tab, int size)
17{ 17{
18 char buf[512]; 18 char buf[512];
19 FILE *fp; 19 FILE *fp;
@@ -30,10 +30,11 @@ static void rtnl_tab_initialize(char *file, const char **tab, int size)
30 p++; 30 p++;
31 if (*p == '#' || *p == '\n' || *p == 0) 31 if (*p == '#' || *p == '\n' || *p == 0)
32 continue; 32 continue;
33 if (sscanf(p, "0x%x %s\n", &id, namebuf) != 2 && 33 if (sscanf(p, "0x%x %s\n", &id, namebuf) != 2
34 sscanf(p, "0x%x %s #", &id, namebuf) != 2 && 34 && sscanf(p, "0x%x %s #", &id, namebuf) != 2
35 sscanf(p, "%d %s\n", &id, namebuf) != 2 && 35 && sscanf(p, "%d %s\n", &id, namebuf) != 2
36 sscanf(p, "%d %s #", &id, namebuf) != 2) { 36 && sscanf(p, "%d %s #", &id, namebuf) != 2
37 ) {
37 bb_error_msg("database %s is corrupted at %s", 38 bb_error_msg("database %s is corrupted at %s",
38 file, p); 39 file, p);
39 return; 40 return;