diff options
Diffstat (limited to 'client/ui_errcatch.c')
-rw-r--r-- | client/ui_errcatch.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/client/ui_errcatch.c b/client/ui_errcatch.c index 5c9cf34..c25f787 100644 --- a/client/ui_errcatch.c +++ b/client/ui_errcatch.c @@ -5,16 +5,10 @@ #include "i18n.h" #include "strings.h" #include "ui.h" +#include "../shared/util.h" unsigned int g_w2_errcatch_log_line = 0; -unsigned int w2_newline_count(char *str, unsigned int len) { - unsigned int newlines = 0; - for (unsigned int i = 0; i < len; i++) - if (str[i] == '\n') newlines++; - return newlines; -} - char *w2_err_format(w2_s_error *error) { const char *type = g_w2_error_type_strings[error->code >> 6]; const char *internal = g_w2_error_internal_strings[error->code]; |