From: Josh Date: Tue, 9 Sep 2014 21:36:49 +0000 (-0400) Subject: fixing template codec X-Git-Tag: 3.0.0-233~1414^2~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=563c35e8ea5eda13fb17047311fa2c77c46d7806;p=thirdparty%2Fsnort3.git fixing template codec --- diff --git a/src/codecs/template.cc b/src/codecs/template.cc index 8e04fac58..4d0dfe09f 100644 --- a/src/codecs/template.cc +++ b/src/codecs/template.cc @@ -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*/) diff --git a/src/protocols/packet.h b/src/protocols/packet.h index 44a6c1923..73a195d60 100644 --- a/src/protocols/packet.h +++ b/src/protocols/packet.h @@ -318,4 +318,3 @@ static inline uint16_t EXTRACT_16BITS(const uint8_t* const p) #endif /* WORDS_MUSTALIGN */ #endif -