diff --git a/cv5/a_train.c b/cv5/a_train.c index 643e8d4..df64671 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -45,7 +45,7 @@ void print_train(struct car* first) { void cancel_train(struct car* first) { if(first == NULL){ - return 0; + return; } if(first->next != NULL){ cancel_train(first->next); @@ -67,7 +67,7 @@ struct car* clear_train(struct car* first, const char* target) { } int x; if(first->next == NULL){ - x = strcmp(first->value; target); + x = strcmp(first->value, target); if(x == 0){ free(first); return 0;