diff --git a/chatty b/chatty new file mode 100755 index 0000000..601de27 Binary files /dev/null and b/chatty differ diff --git a/liblist.a b/liblist.a new file mode 100644 index 0000000..564aa98 Binary files /dev/null and b/liblist.a differ diff --git a/list.txt b/list.txt new file mode 100644 index 0000000..671e36d --- /dev/null +++ b/list.txt @@ -0,0 +1,17 @@ +/* threading stuff */ +LIST *receivelist, *sendlist; +pthread_t input_thread, send_thread, receive_thread, output_thread; +pthread_mutex_t sendmut, receivemut, sendcvmut, receivecvmut, rendermut; +pthread_cond_t sendcv, receivecv; +char closed[] = "Connection closed."; + +/* networking stuff */ +int confd, sockfd; +char s[INET6_ADDRSTRLEN]; + +/* notcurses stuff */ +struct notcurses *nc; +struct ncplane *chatlog, *prompt, *stdn; +unsigned int rows, cols; + + diff --git a/list_adders.o b/list_adders.o new file mode 100644 index 0000000..48a5d41 Binary files /dev/null and b/list_adders.o differ diff --git a/list_movers.o b/list_movers.o new file mode 100644 index 0000000..335e150 Binary files /dev/null and b/list_movers.o differ diff --git a/list_removers.c b/list_removers.c index 27af6ae..93485f3 100644 --- a/list_removers.c +++ b/list_removers.c @@ -31,7 +31,6 @@ int ListRemove(LIST *list) { list->current = list->current->next; } - unused->data = NULL; free(unused->data); free(unused); list->size--; diff --git a/list_removers.o b/list_removers.o new file mode 100644 index 0000000..b0bcc27 Binary files /dev/null and b/list_removers.o differ diff --git a/main.c b/main.c index b73d320..846dae2 100644 --- a/main.c +++ b/main.c @@ -481,6 +481,7 @@ int main(int argc, char* argv[]) { close(confd); ListFree(receivelist); ListFree(sendlist); + ListFree(history); notcurses_stop(nc); printf("%s\n", closed); return 0; diff --git a/main.o b/main.o new file mode 100644 index 0000000..1c3ed55 Binary files /dev/null and b/main.o differ diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..e69de29