will this compile and if not what i can i do to change it? new_post->date must be of type time_t
int make_post(const User *author, User *target, char *contents) {
    if (author == NULL || target == NULL) {
        return 2;
    }
    int friend_mutuality = 0;

    for(int i = 0; i < MAX_FRIENDS; i++) {
        if (author->friends[i] == target) {
            friend_mutuality++;
        }
    }

    if (friend_mutuality == 0) {
        return 1;
    }

    // Make a new post
    Post *new_post = malloc(sizeof(Post));
    strcpy(new_post->author, author->name);
    new_post->contents = contents;
    time_t curr_time= sizeof(time_t);
    time(&curr_time);
    new_post->date = ctime(&curr_time);
    if (target->first_post == NULL) {
        new_post->next = NULL;
    } else {
        new_post->next = target->first_post;
    }
    target->first_post = new_post;

    return 0;
}