diff options
author | rlt3 <leroy@bythehilt.com> | 2013-08-02 14:01:34 -0400 |
---|---|---|
committer | rlt3 <leroy@bythehilt.com> | 2013-08-02 14:01:34 -0400 |
commit | e739de92aa0fdf5fb1839b27260303e441f23342 (patch) | |
tree | 179f1fb7a9c7b7cb707f280bec4e60eedea48bea | |
parent | e13e71409954414fea64a84b17acfd13a19ce88e (diff) |
reverting unneeded changes
-rw-r--r-- | testing/Lossless_UDP_testserver.c | 3 | ||||
-rw-r--r-- | 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[]) | |||
155 | //bind to ip 0.0.0.0:PORT | 155 | //bind to ip 0.0.0.0:PORT |
156 | IP ip; | 156 | IP ip; |
157 | ip.i = 0; | 157 | ip.i = 0; |
158 | //ip.c = 0x7F000001; | ||
159 | init_networking(ip, PORT); | 158 | init_networking(ip, PORT); |
160 | //perror("Initialization"); | 159 | perror("Initialization"); |
161 | 160 | ||
162 | int connection; | 161 | int connection; |
163 | uint64_t timer = current_time(); | 162 | 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) { | |||
282 | 282 | ||
283 | int main(int argc, char* argv[]) { | 283 | int main(int argc, char* argv[]) { |
284 | int ch; | 284 | int ch; |
285 | ToxWindow* current_window; | 285 | ToxWindow* a; |
286 | 286 | ||
287 | init_term(); | 287 | init_term(); |
288 | init_tox(); | 288 | init_tox(); |
@@ -294,20 +294,22 @@ int main(int argc, char* argv[]) { | |||
294 | do_tox(); | 294 | do_tox(); |
295 | 295 | ||
296 | // Draw. | 296 | // Draw. |
297 | current_window = &windows[w_active]; | 297 | a = &windows[w_active]; |
298 | prepare_window(current_window->window); | 298 | prepare_window(a->window); |
299 | current_window->blink = false; | 299 | a->blink = false; |
300 | current_window->onDraw(current_window); | 300 | a->onDraw(a); |
301 | draw_bar(); | 301 | draw_bar(); |
302 | 302 | ||
303 | // Handle input. | 303 | // Handle input. |
304 | ch = getch(); | 304 | ch = getch(); |
305 | if(ch == '\t') { | 305 | if(ch == '\t') { |
306 | w_active = (w_active + 1) % w_num; | 306 | w_active = (w_active + 1) % w_num; |
307 | } else if(ch == KEY_BTAB) { | 307 | } |
308 | else if(ch == KEY_BTAB) { | ||
308 | w_active = (w_active + w_num - 1) % w_num; | 309 | w_active = (w_active + w_num - 1) % w_num; |
309 | } else if(ch != ERR) { | 310 | } |
310 | current_window->onKey(current_window, ch); | 311 | else if(ch != ERR) { |
312 | a->onKey(a, ch); | ||
311 | } | 313 | } |
312 | 314 | ||
313 | } | 315 | } |