Browse code

moved macro

Kevin Lin authored on 2014/08/29 06:42:11
Showing 2 changed files
... ...
@@ -36,6 +36,8 @@
36 36
 #include "mpool.h"
37 37
 #include "regex_pcre.h"
38 38
 
39
+#define PCRE_BYPASS "7374756c747a676574737265676578"
40
+
39 41
 struct cli_pcre_refentry {
40 42
     uint32_t lsigid[2];
41 43
     struct cli_pcre_refentry *next;
... ...
@@ -109,9 +109,6 @@ char *cli_virname(char *virname, unsigned int official)
109 109
     return newname;
110 110
 }
111 111
 
112
-#if HAVE_PCRE
113
-#define PCRE_BYPASS "7374756c747a676574737265676578"
114
-#endif
115 112
 int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hexsig, uint16_t rtype, uint16_t type, const char *offset, uint8_t target, const uint32_t *lsigid, unsigned int options)
116 113
 {
117 114
 	struct cli_bm_patt *bm_new;
... ...
@@ -214,7 +211,6 @@ int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hex
214 214
 
215 215
         /* normal trigger */
216 216
 	cli_dbgmsg("pcre regex detected: %s on trigger: %s\n", wild, trigger);
217
-
218 217
         exit(0);
219 218
 #else
220 219
         cli_errmsg("cli_parseadd(): cannot parse PCRE subsig ithout PCRE support\n");