summaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorRob Landley2006-05-29 06:43:55 +0000
committerRob Landley2006-05-29 06:43:55 +0000
commita6e131dab39ee67522687a56b39ed815b9ae15ec (patch)
tree1ca2de8c070d79096f6db1a4a614d00a0ef7800d /networking/libiproute
parentbba7f08d2788bc9bc30a7a60fdfd873a73fead9a (diff)
downloadbusybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.zip
busybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.tar.gz
Size reductions, mostly switching things to use libbb functions.
Diffstat (limited to 'networking/libiproute')
-rw-r--r--networking/libiproute/ll_map.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c
index 46c873f..24487eb 100644
--- a/networking/libiproute/ll_map.c
+++ b/networking/libiproute/ll_map.c
@@ -17,6 +17,7 @@
#include "libnetlink.h"
#include "ll_map.h"
+#include "libbb.h"
struct idxmap
{
@@ -57,9 +58,7 @@ int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
break;
if (im == NULL) {
- im = malloc(sizeof(*im));
- if (im == NULL)
- return 0;
+ im = xmalloc(sizeof(*im));
im->next = *imp;
im->index = ifi->ifi_index;
*imp = im;