Skip to content

Commit

Permalink
util/var: add comments explaining types
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Jun 5, 2024
1 parent c6fd7aa commit b78f06f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util-var.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2007-2010 Open Information Security Foundation
/* Copyright (C) 2007-2024 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
Expand All @@ -24,6 +24,7 @@
#ifndef SURICATA_UTIL_VAR_H
#define SURICATA_UTIL_VAR_H

/** variable types: these are used to track variable names */
enum VarTypes {
VAR_TYPE_NOT_SET,

Expand All @@ -46,7 +47,7 @@ enum VarTypes {
};

typedef struct GenericVar_ {
uint8_t type;
uint8_t type; /**< variable type, uses detection sm_type */
uint8_t pad[3];
uint32_t idx;
struct GenericVar_ *next;
Expand Down

0 comments on commit b78f06f

Please sign in to comment.