]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing template codec
authorJosh <jrosenba@cisco.com>
Tue, 9 Sep 2014 21:36:49 +0000 (17:36 -0400)
committerJosh <jrosenba@cisco.com>
Tue, 9 Sep 2014 21:36:49 +0000 (17:36 -0400)
src/codecs/template.cc
src/protocols/packet.h

index 8e04fac58f8ea8c31d6d278036fe550a0f11586b..4d0dfe09f647f3381bbb91ade1d548d15daec5bb 100644 (file)
@@ -36,7 +36,7 @@
 // this macros is defined in the module to ensure identical names. However,
 // if you don't want a module, define the name here.
 #define CODEC_NAME "name"
-#define CODEC_NAME "one line help for this codec"
+#define CODEC_HELP "one line help for this codec"
 
 namespace
 {
@@ -85,7 +85,7 @@ static const RuleMap codec_rules[] =
 // template module
 //-------------------------------------------------------------------------
 
-NameModule::NameModule() : DecodeModule(CODEC_NAME, codec_params)
+NameModule::NameModule() : DecodeModule(CODEC_NAME, CODEC_HELP, codec_params)
 { }
 
 bool NameModule::set(const char* /*fqn*/, Value& v, SnortConfig* /*sc*/)
index 44a6c192329030b9d4502811fe559ed58e1eb538..73a195d60b829911a803fb42eaada637cbac1060 100644 (file)
@@ -318,4 +318,3 @@ static inline uint16_t EXTRACT_16BITS(const uint8_t* const p)
 #endif /* WORDS_MUSTALIGN */
 
 #endif
-