int make_friends(const char *name1, const char *name2, User *head) {
    int found_name1 = 0;
    int found_name2 = 0;
    while (head != NULL) {
        if (strcmp(head->name, name1) == 0) {
            found_name1 = 1;
        } else if (strcmp(head->name, name2) == 0) {
            found_name2 = 1;
        }

        head = head->next;
    }
    if (found_name1 == 0 || found_name2 == 0) {
        return 4;
    }
    if (strcmp(name1, name2) == 0) {
        return 3;
    }
    User *user1 = head;
    User *user2 = head;
    User *user1_friend_empty = head;
    User *user2_friend_empty = head;
    int are_friends1 = 0;
    int are_friends2 = 0;
    while (head->next != NULL) {
        if (strcmp(head->name, name1) == 0) {
            user1 = head;
            for (int i = 0; i < MAX_FRIENDS; i++) {
                if (i - 1 > MAX_FRIENDS) {
                    return 2;
                }
                if (strcmp(((head->friends)[i])->name, name2) == 0) {
                    return 1;
                }
                if (strcmp(((head->friends)[i])->name, name2)) {
                    are_friends1 = 1;
                    break;
                }
                if ((head->friends)[i] == NULL) {
                    user1_friend_empty = (head->friends)[i];
                    break;
                }
            }
        }
        if (strcmp(head->name, name2) == 0) {
            user2 = head;
            for (int i = 0; i < MAX_FRIENDS; i++) {
                if (i - 1 > MAX_FRIENDS) {
                    return 2;
                }
                if (strcmp(((head->friends)[i])->name, name1) == 0) {
                    return 1;
                }
                if (strcmp(((head->friends)[i])->name, name1)) {
                    are_friends2 = 1;
                    break;
                }
                if ((head->friends)[i] == NULL) {
                    user2_friend_empty = (head->friends)[i];
                    break;
                }
            }
        }
        head = head->next;
    }
    if (are_friends1 == 1 && are_friends2 == 1) {
        return 1;
    } else {
        user1_friend_empty = user2;
        user2_friend_empty = user1;
        return 0;
    }
}
make the unused variable use