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/snoop.c | |
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/snoop.c')
-rw-r--r-- | wiretap/snoop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/snoop.c b/wiretap/snoop.c index c6991d064c..e5f831f3d8 100644 --- a/wiretap/snoop.c +++ b/wiretap/snoop.c @@ -23,7 +23,7 @@ #include <string.h> #include "wtap-int.h" #include "file_wrappers.h" -#include "buffer.h" +#include <wsutil/buffer.h> #include "atm.h" #include "snoop.h" /* See RFC 1761 for a description of the "snoop" file format. */ |