@ -22,10 +22,10 @@ Message* new_message(char* string, User* from, User* to) {
// *(new_message->recipient) = *to;
time_t rawtime;
struct tm timeinfo;
struct tm* timeinfo;
time(&rawtime);
timeinfo = *localtime(&rawtime);
timeinfo = localtime(&rawtime);
new_message->timeinfo = timeinfo;
@ -10,7 +10,7 @@ typedef struct Message_s Message;
struct Message_s {
char* text;
User* sender;
User* recipient;
};