mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
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:
parent
46e2490cb0
commit
1d750aa164
5 changed files with 15 additions and 15 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
return buffer_n_ > 0 || orig_data_end_ > orig_data_begin_;
|
||||
}
|
||||
|
||||
void SetLineBreaker(u_char *lbreaker);
|
||||
void SetLineBreaker(unsigned char* lbreaker);
|
||||
void UnsetLineBreaker();
|
||||
void NewLine();
|
||||
// A negative frame_length represents a frame till EOF
|
||||
|
@ -126,7 +126,7 @@ protected:
|
|||
|
||||
int buffer_n_; // number of bytes in the buffer
|
||||
int buffer_length_; // size of the buffer
|
||||
u_char *buffer_;
|
||||
unsigned char* buffer_;
|
||||
bool message_complete_;
|
||||
int frame_length_;
|
||||
bool chunked_;
|
||||
|
@ -134,7 +134,7 @@ protected:
|
|||
|
||||
LineBreakStyle linebreak_style_;
|
||||
LineBreakStyle linebreak_style_default;
|
||||
u_char linebreaker_;
|
||||
unsigned char linebreaker_;
|
||||
|
||||
enum {
|
||||
UNKNOWN_MODE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue