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/vwr.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/vwr.c')
-rw-r--r-- | wiretap/vwr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c index 73c650921a..a522531548 100644 --- a/wiretap/vwr.c +++ b/wiretap/vwr.c @@ -982,8 +982,8 @@ static gboolean vwr_read_s1_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr, phdr->rec_type = REC_TYPE_PACKET; phdr->presence_flags = WTAP_HAS_TS; - buffer_assure_space(buf, phdr->caplen); - data_ptr = buffer_start_ptr(buf); + ws_buffer_assure_space(buf, phdr->caplen); + data_ptr = ws_buffer_start_ptr(buf); /* * Generate and copy out the common metadata headers, @@ -1339,8 +1339,8 @@ static gboolean vwr_read_s2_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr, phdr->rec_type = REC_TYPE_PACKET; phdr->presence_flags = WTAP_HAS_TS; - buffer_assure_space(buf, phdr->caplen); - data_ptr = buffer_start_ptr(buf); + ws_buffer_assure_space(buf, phdr->caplen); + data_ptr = ws_buffer_start_ptr(buf); /* * Generate and copy out the common metadata headers, @@ -1635,8 +1635,8 @@ static gboolean vwr_read_rec_data_ethernet(vwr_t *vwr, struct wtap_pkthdr *phdr, /*etap_hdr.vw_ip_length = (guint16)ip_len;*/ - buffer_assure_space(buf, phdr->caplen); - data_ptr = buffer_start_ptr(buf); + ws_buffer_assure_space(buf, phdr->caplen); + data_ptr = ws_buffer_start_ptr(buf); /* * Generate and copy out the common metadata headers, |