From: Anoop Saldanha Date: Wed, 11 Sep 2013 10:00:26 +0000 (+0530) Subject: Fix compilation failure when we don't enable unittests. Got to #ifdef X-Git-Tag: suricata-2.0beta2~279 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ec411486e93f201628b366321a15a6e4df6256f;p=thirdparty%2Fsuricata.git Fix compilation failure when we don't enable unittests. Got to #ifdef ALPROTO_TEST. --- diff --git a/src/app-layer-protos.c b/src/app-layer-protos.c index 1bfe8c43ce..a68e407f2a 100644 --- a/src/app-layer-protos.c +++ b/src/app-layer-protos.c @@ -86,7 +86,9 @@ const char *TmModuleAlprotoToString(enum AppProto proto) proto_name = "dns"; break; case ALPROTO_FAILED: +#ifdef UNITTESTS case ALPROTO_TEST: +#endif case ALPROTO_MAX: case ALPROTO_UNKNOWN: break;