diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-05-03 19:25:18 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-05-04 02:26:31 +0000 |
commit | 0d9a7455a6c35b3573086bb53e790b3936c05063 (patch) | |
tree | dc854f5a4dcce537546e9bcc37073d9c62c548a1 /wsutil/buffer.h | |
parent | 895cfbfd01672af06dd71556b12899dbc2c7e8cd (diff) |
Fix function declaration of ws_buffer_length().
This makes it match 1) the way the function is defined, if it is defined
and 2) the type returned if it's a macro, not a function.
Change-Id: I708a44d2d20f44e58d6ae0228a11e622e7648022
Reviewed-on: https://code.wireshark.org/review/27320
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/buffer.h')
-rw-r--r-- | wsutil/buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/buffer.h b/wsutil/buffer.h index 1dfccd9fe0..5ca90b1bd0 100644 --- a/wsutil/buffer.h +++ b/wsutil/buffer.h @@ -48,7 +48,7 @@ void ws_buffer_cleanup(void); #else void ws_buffer_clean(Buffer* buffer); void ws_buffer_increase_length(Buffer* buffer, unsigned int bytes); - unsigned int ws_buffer_length(Buffer* buffer); + unsigned gsize ws_buffer_length(Buffer* buffer); guint8* ws_buffer_start_ptr(Buffer* buffer); guint8* ws_buffer_end_ptr(Buffer* buffer); void ws_buffer_append_buffer(Buffer* buffer, Buffer* src_buffer); |