aboutsummaryrefslogtreecommitdiff
path: root/client/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/setup.c')
-rw-r--r--client/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/setup.c b/client/setup.c
index e51965f..41a987d 100644
--- a/client/setup.c
+++ b/client/setup.c
@@ -10,6 +10,8 @@
#include "strings.h"
#include "ui.h"
+#include "errcatch.h"
+
// pointers for endianness check
static const uint16_t _test = 1;
static const uint8_t *_ptest = (uint8_t *)&_test;
@@ -47,6 +49,8 @@ void w2_client_setup(int argc, char **argv) {
g_w2_ui_pad_body = newpad(g_w2_ui_height - 5, g_w2_ui_width);
scrollok(g_w2_ui_pad_body, true);
+ w2_errcatch_throw(W2_E_CRIT_COM_UNAVAILABLE);
+
// check endianness
g_w2_endianness = *_ptest;
}