summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-06-10 13:23:06 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-06-10 13:23:12 +0200
commitbac6f28ce1d9abc381c2f85c32bcd37c33cd00c8 (patch)
treef445f21c76b30a09b0cf7a62ec1ab586d7472d02 /config.c
parentf8cf10f2623cbda18e429cc122952859d3e323a5 (diff)
config: replace config_memdup with blob_memdup from libubox
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/config.c b/config.c
index f3e5f9d..9c1127b 100644
--- a/config.c
+++ b/config.c
@@ -366,20 +366,6 @@ config_check_equal(struct blob_attr *c1, struct blob_attr *c2,
return true;
}
-struct blob_attr *
-config_memdup(struct blob_attr *attr)
-{
- struct blob_attr *ret;
- int size = blob_pad_len(attr);
-
- ret = malloc(size);
- if (!ret)
- return NULL;
-
- memcpy(ret, attr, size);
- return ret;
-}
-
static struct uci_package *
config_init_package(const char *config)
{