proto: fix globals use

pull/4537/head
Victor Julien 6 years ago
parent 5e583f3a12
commit 85289f3283

@ -27,6 +27,9 @@
#include "suricata-common.h" #include "suricata-common.h"
#include "util-proto-name.h" #include "util-proto-name.h"
/** Lookup array to hold the information related to known protocol
* in /etc/protocols */
char *known_proto[256];
static int init_once = 0; static int init_once = 0;
/** /**

@ -32,7 +32,7 @@
/** Lookup array to hold the information related to known protocol /** Lookup array to hold the information related to known protocol
* in /etc/protocols */ * in /etc/protocols */
char *known_proto[256]; extern char *known_proto[256];
uint8_t SCProtoNameValid(uint16_t); uint8_t SCProtoNameValid(uint16_t);
void SCProtoNameInit(void); void SCProtoNameInit(void);

Loading…
Cancel
Save