projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: replace config_memdup with blob_memdup from libubox
[project/netifd.git]
/
config.c
diff --git
a/config.c
b/config.c
index
f3e5f9d
..
9c1127b
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-366,20
+366,6
@@
config_check_equal(struct blob_attr *c1, struct blob_attr *c2,
return true;
}
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)
{
static struct uci_package *
config_init_package(const char *config)
{