From e739de92aa0fdf5fb1839b27260303e441f23342 Mon Sep 17 00:00:00 2001 From: rlt3 Date: Fri, 2 Aug 2013 14:01:34 -0400 Subject: [PATCH] reverting unneeded changes --- testing/Lossless_UDP_testserver.c | 3 +-- testing/toxic/main.c | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/testing/Lossless_UDP_testserver.c b/testing/Lossless_UDP_testserver.c index 763996e8..84a64b38 100644 --- a/testing/Lossless_UDP_testserver.c +++ b/testing/Lossless_UDP_testserver.c @@ -155,9 +155,8 @@ int main(int argc, char *argv[]) //bind to ip 0.0.0.0:PORT IP ip; ip.i = 0; - //ip.c = 0x7F000001; init_networking(ip, PORT); - //perror("Initialization"); + perror("Initialization"); int connection; uint64_t timer = current_time(); diff --git a/testing/toxic/main.c b/testing/toxic/main.c index 9614d7f4..26325d95 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c @@ -282,7 +282,7 @@ void prepare_window(WINDOW* w) { int main(int argc, char* argv[]) { int ch; - ToxWindow* current_window; + ToxWindow* a; init_term(); init_tox(); @@ -294,20 +294,22 @@ int main(int argc, char* argv[]) { do_tox(); // Draw. - current_window = &windows[w_active]; - prepare_window(current_window->window); - current_window->blink = false; - current_window->onDraw(current_window); + a = &windows[w_active]; + prepare_window(a->window); + a->blink = false; + a->onDraw(a); draw_bar(); // Handle input. ch = getch(); if(ch == '\t') { w_active = (w_active + 1) % w_num; - } else if(ch == KEY_BTAB) { + } + else if(ch == KEY_BTAB) { w_active = (w_active + w_num - 1) % w_num; - } else if(ch != ERR) { - current_window->onKey(current_window, ch); + } + else if(ch != ERR) { + a->onKey(a, ch); } }