diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-07-15 16:40:46 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-07-15 23:43:32 +0000 |
commit | d4dab16a3fed4dc399083e454226675894b42871 (patch) | |
tree | 24be814f0f9d36acf67a4df4bc59ae11e8fc9576 /wiretap/wtap.h | |
parent | 61ac8156812f5f9ef277f303a5e22aac375ad357 (diff) |
Only one buffer.c, please.
Otherwise, if you link with both libwiretap and libfiletap, it's
anybody's guess which one you get. That means you're wasting memory
with two copies of its routines if they're identical, and means
surprising behavior if they're not (which showed up when I was debugging
a double-free crash - fixing libwiretap's buffer_free() didn't fix the
problem, because Wireshark happened to be calling libfiletap' unfixed
buffer_free()).
There's nothing *tap-specific about Buffers, anyway, so it really
belongs in wsutil.
Change-Id: I91537e46917e91277981f8f3365a2c0873152870
Reviewed-on: https://code.wireshark.org/review/3066
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 153f53ab94..f0716376c6 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -27,7 +27,7 @@ #include <glib.h> #include <time.h> -#include <wiretap/buffer.h> +#include <wsutil/buffer.h> #include <wsutil/nstime.h> #include "ws_symbol_export.h" |