We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3360075 commit ea542bdCopy full SHA for ea542bd
queue.c
@@ -74,10 +74,10 @@ void q_free(struct list_head *head)
74
if (!head)
75
return;
76
77
- struct list_head *current, *safe;
78
- list_for_each_safe (current, safe, head) {
79
- element_t *release_pos = list_entry(current, element_t, list);
80
- q_release_element(release_pos);
+ struct list_head *curr, *safe;
+ list_for_each_safe (curr, safe, head) {
+ element_t *node = list_entry(curr, element_t, list);
+ q_release_element(node);
81
}
82
free(head);
83
0 commit comments