diff --git a/data_structures/linked_list/doubly_linked_list.c b/data_structures/linked_list/doubly_linked_list.c index 8a3d9c48a6..2d8d665f3d 100644 --- a/data_structures/linked_list/doubly_linked_list.c +++ b/data_structures/linked_list/doubly_linked_list.c @@ -168,6 +168,8 @@ List *insert(List *list, double value, int pos) } return list; } + + return list; } /** @@ -230,6 +232,8 @@ List *delete(List *list, int pos) } return list; } + + return list; } /** @@ -245,7 +249,7 @@ int search(List *list, double value) return 0; if (list->value == value) return 1; - search(list->next, value); + return search(list->next, value); } /**