int make_post(const User *author, User *target, char *contents) {
    if (author == NULL || target == NULL) {
        return 2;
    }
    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (author->friends[i] == target) {
            Post *new_post = malloc(sizeof(Post));
            strncpy(new_post->author, author->name, MAX_NAME);
            new_post->author[MAX_NAME-1] = '\0';
            new_post->contents = contents;
            // time function to get the current time and store it in a variable
            // Then, use the ctime function to convert the time value to a string.
            time_t current_time = time(NULL);
            // char* time_string = ctime(&current_time);
            new_post->date = current_time;
            new_post->next = target->first_post;
            target->first_post = new_post;
            return 0;
        }
    }
    return 1;
}
error: assignment to ‘time_t *’ {aka ‘long int *’} from ‘time_t’ {aka ‘long int’} makes pointer from integer without a cast [-Werror=int-
conversion]
  230 |             new_post->date = current_time;