summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/toxic/windows.c5
-rw-r--r--testing/toxic/windows.h2
2 files changed, 5 insertions, 2 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);
diff --git a/testing/toxic/windows.h b/testing/toxic/windows.h
index 7d81e814..893ccf6f 100644
--- a/testing/toxic/windows.h
+++ b/testing/toxic/windows.h
@@ -14,7 +14,7 @@
14#define KEY_SIZE_BYTES 32 14#define KEY_SIZE_BYTES 32
15 15
16/* number of permanent default windows */ 16/* number of permanent default windows */
17#define N_DEFAULT_WINS 2 17#define N_DEFAULT_WINS 3
18 18
19/* maximum window slots for WINDOW_STATUS array */ 19/* maximum window slots for WINDOW_STATUS array */
20#define MAX_WINDOW_SLOTS N_DEFAULT_WINS+MAX_FRIENDS_NUM 20#define MAX_WINDOW_SLOTS N_DEFAULT_WINS+MAX_FRIENDS_NUM