diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-08-02 04:00:48 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-08-02 11:01:29 +0000 |
commit | 0734ac385fbf20cd350850265935a17402d05b84 (patch) | |
tree | dfe612dc7d522330bb4d7eb49e97d0fc73026dc7 /wiretap/ngsniffer.c | |
parent | 41e322594bf5b0281e1f8ea317c1970dfc6b1954 (diff) |
Rename buffer_ routines to ws_buffer_ to avoid name collisions.
In particular, epan/wslua/lrexlib.c has its own buffer_ routines,
causing some linker warnings on some platforms, as reported in bug
10332.
(Not to be backported to 1.12, as that would change the API and ABI of
libwsutil and libwiretap. We should also make the buffer_ routines in
epan/wslua/lrexlib.c static, which should also address this problem, but
the name change avoids other potential namespace collisions.)
Change-Id: I1d42c7d1778c7e4c019deb2608d476c52001ce28
Reviewed-on: https://code.wireshark.org/review/3351
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/ngsniffer.c')
-rw-r--r-- | wiretap/ngsniffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c index 2bfdd1f2da..99feaa2f59 100644 --- a/wiretap/ngsniffer.c +++ b/wiretap/ngsniffer.c @@ -1355,8 +1355,8 @@ ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, /* * Read the packet data. */ - buffer_assure_space(buf, size); - bytes_read = ng_file_read(buffer_start_ptr(buf), size, wth, + ws_buffer_assure_space(buf, size); + bytes_read = ng_file_read(ws_buffer_start_ptr(buf), size, wth, is_random, err, err_info); if (bytes_read != (gint64) size) { if (*err == 0) @@ -1863,7 +1863,7 @@ fix_pseudo_header(int encap, Buffer *buf, int len, { const guint8 *pd; - pd = buffer_start_ptr(buf); + pd = ws_buffer_start_ptr(buf); switch (encap) { case WTAP_ENCAP_PER_PACKET: |