]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dnp3: in template, include files own headers
authorJason Ish <ish@unx.ca>
Wed, 3 May 2017 14:55:38 +0000 (08:55 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 9 May 2017 08:49:31 +0000 (10:49 +0200)
To deal with -Wmissing-prototypes as added in
ab1200fbd7fd4d3e0fe097fab3b3bcfefaba7e2e

Note: Change was already applied to source files, this just
updates the generation.

scripts/dnp3-gen/dnp3-gen.py

index 67cee0e2bcaa3de6c062f607ebcfec129c300c58..cc2aa8fc439edc4470dbe69de5479be99d076d08 100755 (executable)
@@ -68,6 +68,7 @@ util_lua_dnp3_objects_c_template = """/* Copyright (C) 2015 Open Information Sec
 #include <lauxlib.h>
 
 #include "util-lua.h"
+#include "util-lua-dnp3-objects.h"
 
 /**
  * \\brief Push an object point item onto the stack.
@@ -155,6 +156,7 @@ output_json_dnp3_objects_template = """/* Copyright (C) 2015 Open Information Se
 
 #include "app-layer-dnp3.h"
 #include "app-layer-dnp3-objects.h"
+#include "output-json-dnp3-objects.h"
 
 #ifdef HAVE_LIBJANSSON