diff --git a/lib/utils_disk.c b/lib/utils_disk.c
index 96f5a306438e579abaf6277b496a6b04c06e943a..3f9c8a9a830ef16ca0cd98454add0c8b1da31bde 100644 (file)
--- a/lib/utils_disk.c
+++ b/lib/utils_disk.c
return new_path;
}
+/* Delete a given parameter from list and return pointer to next element*/
+struct parameter_list *
+np_del_parameter(struct parameter_list *item, struct parameter_list *prev)
+{
+ struct parameter_list *next;
+ if (item->name_next)
+ next = item->name_next;
+ else
+ next = NULL;
+
+
+ free(item);
+ if (prev)
+ prev->name_next = next;
+
+ return next;
+
+}
+
+
/* returns a pointer to the struct found in the list */
struct parameter_list *
np_find_parameter(struct parameter_list *list, const char *name)
return false;
}
}
+