typedef struct user {
    char name[MAX_NAME];
    char profile_pic[MAX_NAME];  // This is a *filename*, not the file contents.
    struct post *first_post;
    struct user *friends[MAX_FRIENDS];
    struct user *next;
} User;


int make_friends(const char *name1, const char *name2, User *head) {
    // check if either user exists in list
    if (find_user(name1, head) || find_user(name2, head) == NULL) {
        return 4;
    }

    // check whether names entered are the same
    else if (strcmp(name1, name2) == 0) {
        return 3;
    }

    // since we know past this point that both users exist
    User *user1 = (User *)find_user(name1, head);
    // incompatible pointer type - friends is struct user *[10]
    User *friends1 = user1->friends;
    int count1 = 0;
    while (friends1 != NULL) {
        count1++;
        friends1 = friends1->next;
    }
    User *user2 = (User *)find_user(name2, head);
    User *friends2 = user2->friends;
    int count2 = 0;
    while (friends2 != NULL) {
        count2++;
        friends2 = friends2->next;
    }

    // check whether one already has 10 friends
    if (count1 == 10 || count2 == 10) {
        return 2;
    }

    // check whether already friends: only need to check one user because mutual relationship
    else if (find_user(name2, friends1) != NULL) {
        return 1;
    }

    // checks passed, add user to each others 'friends' members (both ways)
    else {
        // adding user2 as a friend of user1
        while (friends1 != NULL) {
            friends1 = friends1->next;
        }
        friends1->next = user2;

        // adding user1 as a friend of user2
        while (friends2 != NULL) {
            friends2 = friends2->next;
        }
        friends2->next = user1;

        return 0;
    }
}
how to fix warning: incompatible pointer types initializing 'User *' (aka 'struct user *') with an expression of type 'struct user *[10