libpurple/protocols/zephyr/zephyr_err.c

changeset 39829
ce056c64e426
parent 15435
4b933b06d75e
equal deleted inserted replaced
39828:7372deed606c 39829:ce056c64e426
1 #include "zephyr_err.h" 1 #include "zephyr_err.h"
2
3 #ifdef __STDC__
4 #define NOARGS void
5 #else
6 #define NOARGS
7 #define const
8 #endif
9 2
10 static const char * const text[] = { 3 static const char * const text[] = {
11 "Packet too long or buffer too small", 4 "Packet too long or buffer too small",
12 "Notice header too large", 5 "Notice header too large",
13 "Illegal value in notice", 6 "Illegal value in notice",
47 40
48 static const struct error_table et = { text, -772103680L, 23 }; 41 static const struct error_table et = { text, -772103680L, 23 };
49 42
50 static struct et_list link = { 0, 0 }; 43 static struct et_list link = { 0, 0 };
51 44
52 void initialize_zeph_error_table (NOARGS) { 45 void
46 initialize_zeph_error_table(void)
47 {
53 if (!link.table) { 48 if (!link.table) {
54 link.next = _et_list; 49 link.next = _et_list;
55 link.table = &et; 50 link.table = &et;
56 _et_list = &link; 51 _et_list = &link;
57 } 52 }

mercurial