User *find_user(const char *name, const User *head) {
    User *user_ptr = head;
    while (user_ptr->next != NULL || ((User *)user_ptr)->name != name) {
        user_ptr = user_ptr->next;
    }

    if (user_ptr->name == name) {  // case where user name exists
        return user_ptr;
    } else {
        return NULL;
    }
}
how to fix error returning 'const User *' (aka 'const struct user *') from a function with result type 'User *' (aka 'struct user *') discards qualifiers