aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2021-09-11 11:10:46 +0200
committerGitHub <noreply@github.com>2021-09-11 11:10:46 +0200
commit951bcb0c396b56f09b5c23e7cde04b20bf769231 (patch)
tree11ffb88470f4d3646e574963382b0d9fee0e1dfd
parent083e46492982e67424ab172fe5fc4b2eada52729 (diff)
Cassandra: fix compilation when "--enable-debug-messages" option is used (#1294)
Let's try adding a dedicated compilation in GitHub Actions to easily detect this kind of errors in the future
-rw-r--r--.github/workflows/build.yml4
-rw-r--r--src/lib/protocols/cassandra.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d8d69344b..8e3abfc6b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,6 +23,10 @@ jobs:
run: ./tests/do.sh
- name: Test UNIT
run: ./tests/unit/unit
+ - name: Configure (with debug logs)
+ run: make distclean && env CFLAGS='-Werror' ./autogen.sh --enable-debug-messages
+ - name: Build
+ run: make all
- name: Configure ARM
run: make distclean && env CFLAGS='-Werror' ./autogen.sh --host=arm-linux-gnueabihf --with-only-libndpi
- name: Build ARM
diff --git a/src/lib/protocols/cassandra.c b/src/lib/protocols/cassandra.c
index 1072ed4b5..248708b17 100644
--- a/src/lib/protocols/cassandra.c
+++ b/src/lib/protocols/cassandra.c
@@ -22,9 +22,9 @@
#include <stdbool.h>
#include "ndpi_protocol_ids.h"
+#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_CASSANDRA
#include "ndpi_api.h"
-#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_CASSANDRA
#define CASSANDRA_HEADER_LEN 9
#define CASSANDRA_MAX_BODY_SIZE 268435456 //256MB (256 * 1024^2)