Various style fixes

pull/753/head
Victor Julien 12 years ago
parent 429c6388f6
commit 59327e0fd4

@ -1541,9 +1541,9 @@ void *AppLayerProtoDetectGetCtxThread(void)
for (i = 0; i < FLOW_PROTO_DEFAULT; i++) {
for (j = 0; j < 2; j++) {
if (max_pat_id == 0)
{
if (max_pat_id == 0) {
max_pat_id = alpd_ctx.ctx_ipp[i].ctx_pm[j].max_pat_id;
} else if (alpd_ctx.ctx_ipp[i].ctx_pm[j].max_pat_id &&
max_pat_id < alpd_ctx.ctx_ipp[i].ctx_pm[j].max_pat_id)
{
@ -2666,27 +2666,6 @@ int AppLayerProtoDetectTest14(void)
return r;
}
typedef struct AppLayerProtoDetectPPTestDataElement_ {
char *alproto_name;
uint16_t alproto;

@ -226,8 +226,7 @@ void *AppLayerParserGetCtxThread(void)
for (i = 0; i < FLOW_PROTO_DEFAULT; i++) {
for (j = 0; j < ALPROTO_MAX; j++) {
tctx->alproto_local_storage[i][j] =
AppLayerParserGetProtocolParserLocalStorage(FlowGetReverseProtoMapping(i),
j);
AppLayerParserGetProtocolParserLocalStorage(FlowGetReverseProtoMapping(i), j);
}
}
@ -680,11 +679,11 @@ uint64_t AppLayerParserGetTransactionActive(uint16_t ipproto, AppProto alproto,
{
SCEnter();
AppLayerParserParserState *pstate_1 = (AppLayerParserParserState *)pstate;
AppLayerParserParserState *state = (AppLayerParserParserState *)pstate;
uint64_t active_id;
uint64_t log_id = pstate_1->log_id;
uint64_t inspect_id = pstate_1->inspect_id[direction & STREAM_TOSERVER ? 0 : 1];
uint64_t log_id = state->log_id;
uint64_t inspect_id = state->inspect_id[direction & STREAM_TOSERVER ? 0 : 1];
if (alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].logger == TRUE) {
active_id = (log_id < inspect_id) ? log_id : inspect_id;
} else {

@ -22,8 +22,8 @@
* \author Anoop Saldanha <anoopsaldanha@gmail.com>
*/
#ifndef __APP_LAYER_PARSER__H__
#define __APP_LAYER_PARSER__H__
#ifndef __APP_LAYER_PARSER_H__
#define __APP_LAYER_PARSER_H__
#include "decode-events.h"
#include "util-file.h"
@ -189,4 +189,4 @@ void AppLayerParserBackupParserTable(void);
void AppLayerParserRestoreParserTable(void);
#endif
#endif /* __APP_LAYER_PARSER__H__ */
#endif /* __APP_LAYER_PARSER_H__ */

@ -22,8 +22,8 @@
* \author Anoop Saldanha <anoopsaldanha@gmail.com>
*/
#ifndef __APP_LAYER_PROTOS__H__
#define __APP_LAYER_PROTOS__H__
#ifndef __APP_LAYER_PROTOS_H__
#define __APP_LAYER_PROTOS_H__
enum {
ALPROTO_UNKNOWN = 0,
@ -63,4 +63,4 @@ typedef uint16_t AppProto;
*/
const char *AppProtoToString(AppProto alproto);
#endif /* __APP_LAYER_PROTOS__H__ */
#endif /* __APP_LAYER_PROTOS_H__ */

@ -20,8 +20,8 @@
* \author Anoop Saldanha <anoopsaldanha@gmail.com>
*/
#ifndef __APP_LAYER__H__
#define __APP_LAYER__H__
#ifndef __APP_LAYER_H__
#define __APP_LAYER_H__
#include "threadvars.h"
#include "decode.h"

Loading…
Cancel
Save