Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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)
{
bool config_diff(struct blob_attr **tb1, struct blob_attr **tb2,
const struct config_param_list *config, unsigned long *diff);
-struct blob_attr *config_memdup(struct blob_attr *attr);
-
#endif
struct device *odev = NULL, *dev;
enum dev_change_type change;
- config = config_memdup(config);
+ config = blob_memdup(config);
if (!config)
return NULL;