diff options
author | Rob Landley <rob@landley.net> | 2006-05-29 06:43:55 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-29 06:43:55 +0000 |
commit | a6e131dab39ee67522687a56b39ed815b9ae15ec (patch) | |
tree | 1ca2de8c070d79096f6db1a4a614d00a0ef7800d /networking/libiproute | |
parent | bba7f08d2788bc9bc30a7a60fdfd873a73fead9a (diff) | |
download | busybox-w32-a6e131dab39ee67522687a56b39ed815b9ae15ec.tar.gz busybox-w32-a6e131dab39ee67522687a56b39ed815b9ae15ec.tar.bz2 busybox-w32-a6e131dab39ee67522687a56b39ed815b9ae15ec.zip |
Size reductions, mostly switching things to use libbb functions.
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ll_map.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index 46c873faa..24487eb3d 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include "libnetlink.h" | 18 | #include "libnetlink.h" |
19 | #include "ll_map.h" | 19 | #include "ll_map.h" |
20 | #include "libbb.h" | ||
20 | 21 | ||
21 | struct idxmap | 22 | struct idxmap |
22 | { | 23 | { |
@@ -57,9 +58,7 @@ int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) | |||
57 | break; | 58 | break; |
58 | 59 | ||
59 | if (im == NULL) { | 60 | if (im == NULL) { |
60 | im = malloc(sizeof(*im)); | 61 | im = xmalloc(sizeof(*im)); |
61 | if (im == NULL) | ||
62 | return 0; | ||
63 | im->next = *imp; | 62 | im->next = *imp; |
64 | im->index = ifi->ifi_index; | 63 | im->index = ifi->ifi_index; |
65 | *imp = im; | 64 | *imp = im; |