aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2015-04-30 14:18:01 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-30 12:19:55 +0000
commit45a5a1a4b43d4c426a730421c4846f268bb1822d (patch)
treec8130c6ffdeed8c0f4eb5b63a95ba85f35f88d83
parent2d8b4a233e2c089b9736ad7ec2cea90438e6ad0f (diff)
[nettrace_3gpp_32_423] Fix nettrace_3gpp_32_423.c:292: warning:
declaration of 'random' shadows a global declaration. Change-Id: I2dde89a3f0e5abb3b8acc3c7d09e1a0d53a6c0f7 Reviewed-on: https://code.wireshark.org/review/8245 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--wiretap/nettrace_3gpp_32_423.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/nettrace_3gpp_32_423.c b/wiretap/nettrace_3gpp_32_423.c
index 0e1168463a..a82cc87fbf 100644
--- a/wiretap/nettrace_3gpp_32_423.c
+++ b/wiretap/nettrace_3gpp_32_423.c
@@ -289,7 +289,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
gchar *wrt_err_info;
struct wtap_pkthdr phdr;
- gboolean random = FALSE;
+ gboolean do_random = FALSE;
char *curr_pos, *next_pos;
import_file_fd = create_tempfile(&(file_info->tmpname), "Wireshark_PDU_");
@@ -463,10 +463,10 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
/* Find out if random read was requested */
if (wth->random_fh){
- random = TRUE;
+ do_random = TRUE;
}
file_info->wth_tmp_file =
- wtap_open_offline(file_info->tmpname, WTAP_TYPE_AUTO, err, err_info, random);
+ wtap_open_offline(file_info->tmpname, WTAP_TYPE_AUTO, err, err_info, do_random);
if (!file_info->wth_tmp_file){
return WTAP_OPEN_ERROR;