projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
attempt to regularize atoi mess.
[oweals/busybox.git]
/
networking
/
interface.c
diff --git
a/networking/interface.c
b/networking/interface.c
index c3cc7c0bc564d4d5cfe3381a464f0b9ff8a813e5..8e2498d27cc56667887fd1c51ddd7b206dfb0ee1 100644
(file)
--- a/
networking/interface.c
+++ b/
networking/interface.c
@@
-363,7
+363,7
@@
static int nstrcmp(const char *a, const char *b)
}
if (isdigit(*a) && isdigit(*b)) {
- return
atoi(a_ptr) > atoi
(b_ptr) ? 1 : -1;
+ return
xatoul(a_ptr) > xatoul
(b_ptr) ? 1 : -1;
}
return *a - *b;
}