aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-03-13 16:50:07 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-03-13 16:50:07 +0100
commitac5e3e46c36ef45a3ce84e59a15e8e909129e519 (patch)
tree5a895cfe466de4a2d122c3b120100e591046afe8 /src/list.h
parent047c76825c9eea6b3475123e5627ee470c515934 (diff)
downloadutils-ac5e3e46c36ef45a3ce84e59a15e8e909129e519.tar.gz
utils-ac5e3e46c36ef45a3ce84e59a15e8e909129e519.zip
Remove size_of from clist_add
We don't need the size of data, just calculate it from the pointer passed by.
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.h b/src/list.h
index 15199c7..1bd83dc 100644
--- a/src/list.h
+++ b/src/list.h
@@ -36,7 +36,7 @@ typedef struct iterator_t {
} iterator_t;
list_t clist_create (void);
-void clist_add (list_t *, void *, int);
+void clist_add (list_t *, void *);
void clist_add_all (list_t *, list_t *);
void clist_remove (list_t *, list_item_t *);
iterator_t clist_iterator (list_t *);