From: michael Date: Tue, 2 Jun 2015 16:34:01 +0000 (+0000) Subject: - scan.c, scan.h: moved the 'struct kline_format_assoc' into scan_irckline() X-Git-Tag: 1.0.7~19 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=1ce99cedfa61f1c154440fbd16d1b6273503495a;p=hopm.git - scan.c, scan.h: moved the 'struct kline_format_assoc' into scan_irckline() git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@6026 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/scan.c b/src/scan.c index 0ac3f9c..5907377 100644 --- a/src/scan.c +++ b/src/scan.c @@ -775,13 +775,17 @@ scan_irckline(const struct scan_struct *ss, const char *format, const char *type unsigned int len = 0; /* position in message */ unsigned int size = 0; /* temporary size buffer */ unsigned int i; - struct kline_format_assoc table[] = + struct kline_format_assoc { - {'i', NULL }, - {'h', NULL }, - {'u', NULL }, - {'n', NULL }, - {'t', NULL } + const char key; + const void *data; + } table[] = + { + { 'i', NULL }, + { 'h', NULL }, + { 'u', NULL }, + { 'n', NULL }, + { 't', NULL } }; table[0].data = ss->ip; diff --git a/src/scan.h b/src/scan.h index a2c85b9..e43ef37 100644 --- a/src/scan.h +++ b/src/scan.h @@ -52,12 +52,6 @@ struct protocol_assoc const char *name; }; -struct kline_format_assoc -{ - char key; - const void *data; -}; - extern void scan_init(void); extern const char *scan_gettype(int); extern void scan_cycle(void);