renamed get_node's parameter to pointer

This commit is contained in:
Václav Šmejkal 2023-02-02 15:19:25 +01:00
parent 273caad781
commit 568ac4e43e
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -73,12 +73,12 @@ void remove_node(node_t *node)
free(node);
}
node_t *get_node(void *string)
node_t *get_node(void *pointer)
{
node_t *buffer = head;
while (buffer -> next != NULL)
{
if (buffer -> pointer == string) return buffer;
if (buffer -> pointer == pointer) return buffer;
buffer = buffer -> next;
}