- libopm/src/config.c: constification; remove extraneous comma from the 'HASH' table
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 8 Jun 2015 20:18:43 +0000 (20:18 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 8 Jun 2015 20:18:43 +0000 (20:18 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6071 82007160-df01-0410-b94d-b575c5fd34c7

src/libopm/src/config.c

index 0d76c8e412595e0b122cd554406a31dbc7bc32bb..49dae34d40aa29ff0ad711e3af2d3c7561c3bc3f 100644 (file)
@@ -34,7 +34,7 @@
 #include "list.h"
 
 
-static OPM_CONFIG_HASH_T HASH[] =
+static const OPM_CONFIG_HASH_T HASH[] =
 {
   { OPM_CONFIG_FD_LIMIT,      OPM_TYPE_INT        },
   { OPM_CONFIG_BIND_IP ,      OPM_TYPE_ADDRESS    },
@@ -43,7 +43,7 @@ static OPM_CONFIG_HASH_T HASH[] =
   { OPM_CONFIG_SCAN_IP,       OPM_TYPE_STRING     },
   { OPM_CONFIG_SCAN_PORT,     OPM_TYPE_INT        },
   { OPM_CONFIG_MAX_READ,      OPM_TYPE_INT        },
-  { OPM_CONFIG_TIMEOUT,       OPM_TYPE_INT        },
+  { OPM_CONFIG_TIMEOUT,       OPM_TYPE_INT        }
 };
 
 /* config_create