Skip to content

Commit

Permalink
Correct function parameter to match implementation
Browse files Browse the repository at this point in the history
This commit ensures that the parameters of the q_free function in
'queue.h' match those in 'queue.c'.
  • Loading branch information
komark06 committed Feb 25, 2024
1 parent 34a821c commit b951eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct list_head *q_new()
}

/* Free all storage used by queue */
void q_free(struct list_head *l) {}
void q_free(struct list_head *head) {}

/* Insert an element at head of queue */
bool q_insert_head(struct list_head *head, char *s)
Expand Down

0 comments on commit b951eae

Please sign in to comment.