static void
uci_free_element(struct uci_element *e)
{
- if (!e)
- return;
-
if (!uci_list_empty(&e->list))
uci_list_del(&e->list);
free(e);
return 0;
}
-static inline char *get_filename(char *path)
-{
- char *p;
-
- p = strrchr(path, '/');
- p++;
- if (!*p)
- return NULL;
- return p;
-}