Commit 2b135c60 authored by Lenitra's avatar Lenitra
Browse files

push2

parent 9f803ae1
Loading
Loading
Loading
Loading
+1 −1
Changes for src/list.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ int list_is_empty(list_t l){

list_t list_push(list_t l, void* x){
  // add x to the end of l
  struct cell_t* c = malloc(sizeof(struct cell_t));
  list_t c = malloc(sizeof(*c));
  c->val = x;
  if(l == NULL){
    c -> id = 1;