aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index cf811d8..e3ba8ea 100644
--- a/main.c
+++ b/main.c
@@ -34,7 +34,7 @@ void error(char *c)
list *list_create(char title[], char id[])
{
- list *x = malloc(sizeof(list));
+ list *x = (list *)malloc(sizeof(list));
sscanf(title, "%199[^\n]", x->name);
sscanf(id, "%11s", x->id);
x->next = NULL;
Feel free to download, copy and edit any repo