about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-05 00:42:02 +0100
committerJames Booth <boothj5@gmail.com>2012-10-05 00:42:02 +0100
commit8ecd93049f2125473cad3270928fde297bbf6f3b (patch)
tree06c8e7ef74b494940965cbaef2a8a579af57cd56
parenta6467e17c7bd7be398c2f096190f7aaee9ffe76b (diff)
downloadprofani-tty-8ecd93049f2125473cad3270928fde297bbf6f3b.tar.gz
Set no blocking delay to 100ms
-rw-r--r--src/input_win.c2
-rw-r--r--src/profanity.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/input_win.c b/src/input_win.c
index 308d4046..15f095bf 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -110,7 +110,7 @@ inp_clear(void)
 void
 inp_non_block(void)
 {
-    wtimeout(inp_win, 20);
+    wtimeout(inp_win, 100);
 }
 
 void
diff --git a/src/profanity.c b/src/profanity.c
index 329acb70..521b277e 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -55,10 +55,12 @@ prof_run(const int disable_tls, char *log_level)
     GTimer *timer = g_timer_new();
     gboolean cmd_result = TRUE;
 
+    char inp[INP_WIN_MAX];
+    int size = 0;
+
     while(cmd_result == TRUE) {
         int ch = ERR;
-        char inp[INP_WIN_MAX];
-        int size = 0;
+        size = 0;
 
         while(ch != '\n') {