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
This commit is contained in:
Ivan Nardi
2021-09-11 11:10:46 +02:00
committed by GitHub
parent 083e464929
commit 951bcb0c39
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -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)