- scan.c, scan.h: moved the 'struct kline_format_assoc' into scan_irckline()
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 2 Jun 2015 16:33:41 +0000 (16:33 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 2 Jun 2015 16:33:41 +0000 (16:33 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6025 82007160-df01-0410-b94d-b575c5fd34c7

src/scan.c
src/scan.h

index 0ac3f9c7ace1382bf59e2ab914001cdbf51eaa79..5907377b247c06e4ad61f76e200069b67b91ea99 100644 (file)
@@ -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;
index a2c85b9324137c3b5c8a6a475dba66e62c247823..e43ef375ee75f99fa1aeeedc15f3698f7edaa3d9 100644 (file)
@@ -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);