binpac: Replace u_char usages with unsigned char

Improve Alpine (musl) support by not relying on the (technically)
non-standard u_char typedef.
This commit is contained in:
Jon Siwek 2018-11-30 19:22:15 -06:00 committed by Tim Wojtulewicz
parent 46e2490cb0
commit 1d750aa164
5 changed files with 15 additions and 15 deletions

View file

@ -10,16 +10,16 @@ class ConnectionAnalyzer {
public:
virtual ~ConnectionAnalyzer() {}
virtual void NewData(bool is_orig,
const u_char *begin_of_data,
const u_char *end_of_data) = 0;
const unsigned char* begin_of_data,
const unsigned char* end_of_data) = 0;
};
// The interface for a flow analyzer
class FlowAnalyzer {
public:
virtual ~FlowAnalyzer() {}
virtual void NewData(const u_char *begin_of_data,
const u_char *end_of_data) = 0;
virtual void NewData(const unsigned char* begin_of_data,
const unsigned char* end_of_data) = 0;
};
} // namespace binpac