Skip to content

Commit

Permalink
Update list.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu authored Dec 10, 2024
1 parent 6e8e1a4 commit 187ea78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/oc/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,11 @@ Item* lappendobj(List* list, Object* obj) {
Item* lappendvoid(List* list, void* obj) {
return insertvoid(list, obj);
}

Item* hoc_l_delete(Item* item) {
void hoc_l_delete(Item* item) {
assert(item->itemtype); /* can't delete list */
Item* next = item->next;
item->next->prev = item->prev;
item->prev->next = item->next;
Free(item);
return next;
}

char* stralloc(const char* buf, char* rel) {
Expand Down

0 comments on commit 187ea78

Please sign in to comment.