summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/route.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2000-03-14 01:46:54 +0000
committerBrian Somers <brian@FreeBSD.org>2000-03-14 01:46:54 +0000
commitd6d3eeab46e7906545356c7571e46f0c61a5a397 (patch)
treee8b3f1a1139b61733094f2c0f949021e578dc9ad /usr.sbin/ppp/route.c
parent52c9ca1968734557de56a0f30dd275665059a961 (diff)
downloadsrc-test2-d6d3eeab46e7906545356c7571e46f0c61a5a397.tar.gz
src-test2-d6d3eeab46e7906545356c7571e46f0c61a5a397.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r--usr.sbin/ppp/route.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c
index cd601e948aa1..1ae43df37338 100644
--- a/usr.sbin/ppp/route.c
+++ b/usr.sbin/ppp/route.c
@@ -300,13 +300,13 @@ Index2Nam(int idx)
if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) {
log_Printf(LogERROR, "Index2Nam: sysctl: estimate: %s\n",
strerror(errno));
- return "???";
+ return NumStr(idx, NULL, 0);
}
if ((buf = malloc(needed)) == NULL)
- return "???";
+ return NumStr(idx, NULL, 0);
if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) {
free(buf);
- return "???";
+ return NumStr(idx, NULL, 0);
}
end = buf + needed;
@@ -334,7 +334,7 @@ Index2Nam(int idx)
ifs = NULL;
}
free(buf);
- return "???";
+ return NumStr(idx, NULL, 0);
}
ifs = newifs;
memset(ifs + had, '\0', sizeof(char *) * (have - had));
@@ -364,7 +364,7 @@ Index2Nam(int idx)
}
if (idx < 1 || idx > nifs || ifs[idx-1] == NULL)
- return "???";
+ return NumStr(idx, NULL, 0);
return ifs[idx-1];
}