removed completed TODOs

This commit is contained in:
Václav Šmejkal 2023-05-02 19:11:08 +02:00
parent 884efa1a92
commit 92e6632fbc
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 4 additions and 6 deletions

View File

@ -159,7 +159,7 @@ char *read_socket_from_raw(char *raw)
if (json_obj == NULL) return "ERR"; //RETURN IF INVALID SYNTAX WAS SENT BY SOME FUCKING SCRIPT KIDDIE
//GET STRINGS
char *message = get_string_from_json(json_obj, "message"); //TODO: Check deallocation problems
char *message = get_string_from_json(json_obj, "message");
char *username = get_string_from_json(json_obj, "username");
//ALLOCATE final_message
@ -398,7 +398,7 @@ char *why2_read_socket(int socket)
struct json_object *json_obj = json_tokener_parse(raw_socket);
//GET STRINGS
char *message = get_string_from_json(json_obj, "message"); //TODO: Check deallocation problems
char *message = get_string_from_json(json_obj, "message");
char *username = get_string_from_json(json_obj, "username");
//ALLOCATE final_message
@ -484,6 +484,4 @@ void *why2_listen_server(void *socket)
}
return NULL;
}
//TODO: Client formatting fix
}

View File

@ -44,7 +44,7 @@ void why2_list_push(why2_list_t *list, void *value, unsigned long size)
buffer -> next = new_node; //LINK
}
list -> head = buffer; //TODO: Unused?
list -> head = buffer;
}
void why2_list_remove(why2_list_t *list, why2_node_t *node)