[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>
This commit is contained in:
AndersBroman 2015-04-30 14:18:01 +02:00 committed by Anders Broman
parent 2d8b4a233e
commit 45a5a1a4b4
1 changed files with 3 additions and 3 deletions

View File

@ -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;