summaryrefslogtreecommitdiff
path: root/testing/toxic/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/windows.c')
-rw-r--r--testing/toxic/windows.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c
index aab46e99..6de50741 100644
--- a/testing/toxic/windows.c
+++ b/testing/toxic/windows.c
@@ -1,5 +1,6 @@
1#include "friendlist.h" 1#include "friendlist.h"
2#include "prompt.h" 2#include "prompt.h"
3#include "dhtstatus.h"
3#include "windows.h" 4#include "windows.h"
4 5
5/* Holds status of chat windows */ 6/* Holds status of chat windows */
@@ -164,8 +165,10 @@ ToxWindow *init_windows()
164 w_num = 0; 165 w_num = 0;
165 int n_prompt = 0; 166 int n_prompt = 0;
166 int n_friendslist = 1; 167 int n_friendslist = 1;
168 int n_dhtstatus = 2;
167 if (add_window(m, new_prompt(on_friendadded), n_prompt) == -1 169 if (add_window(m, new_prompt(on_friendadded), n_prompt) == -1
168 || add_window(m, new_friendlist(WINDOW_STATUS), n_friendslist) == -1) { 170 || add_window(m, new_friendlist(WINDOW_STATUS), n_friendslist) == -1
171 || add_window(m, new_dhtstatus(), n_dhtstatus) == -1) {
169 fprintf(stderr, "add_window() failed.\n"); 172 fprintf(stderr, "add_window() failed.\n");
170 endwin(); 173 endwin();
171 exit(1); 174 exit(1);