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/k12text.l | |
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/k12text.l')
-rw-r--r-- | wiretap/k12text.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/k12text.l b/wiretap/k12text.l index 0174954da1..f0d2d6783f 100644 --- a/wiretap/k12text.l +++ b/wiretap/k12text.l @@ -283,8 +283,8 @@ k12text_read(wtap *wth, int *err, char ** err_info, gint64 *data_offset) k12text_set_headers(&wth->phdr); - buffer_assure_space(wth->frame_buffer, wth->phdr.caplen); - memcpy(buffer_start_ptr(wth->frame_buffer), bb, wth->phdr.caplen); + ws_buffer_assure_space(wth->frame_buffer, wth->phdr.caplen); + memcpy(ws_buffer_start_ptr(wth->frame_buffer), bb, wth->phdr.caplen); return TRUE; } @@ -313,8 +313,8 @@ k12text_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer * k12text_set_headers(phdr); - buffer_assure_space(buf, phdr->caplen); - memcpy(buffer_start_ptr(buf), bb, phdr->caplen); + ws_buffer_assure_space(buf, phdr->caplen); + memcpy(ws_buffer_start_ptr(buf), bb, phdr->caplen); return TRUE; } |