diff options
author | Graham Bloice <graham.bloice@trihedral.com> | 2015-09-26 15:46:52 +0100 |
---|---|---|
committer | Graham Bloice <graham.bloice@trihedral.com> | 2015-09-26 16:13:15 +0000 |
commit | 4150bae2c39f25c819ce50aeb447e1d7d19f8451 (patch) | |
tree | f965eb0838548123834157cd90bb51704faab26c /ui/win32 | |
parent | 13d28691d6f1deae263a976d9defedd6f1ebb0d2 (diff) | |
download | wireshark-4150bae2c39f25c819ce50aeb447e1d7d19f8451.tar.gz |
Fix checkapi warnings
Fix some (mostly spurious) checkapi warnings by renaming the
offending variables.
Change-Id: I7a43ac89f5ed35053a6526fa838fbad67669a49a
Reviewed-on: https://code.wireshark.org/review/10655
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Diffstat (limited to 'ui/win32')
-rw-r--r-- | ui/win32/file_dlg_win32.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index 442ddac1c0..ea4ea41b43 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -1620,7 +1620,7 @@ static void build_file_format_list(HWND sf_hwnd) { HWND format_cb; int ft; - guint index; + guint file_index; guint item_to_select; gchar *s; @@ -1632,7 +1632,7 @@ build_file_format_list(HWND sf_hwnd) { SendMessage(format_cb, CB_RESETCONTENT, 0, 0); /* Check all file types. */ - index = 0; + file_index = 0; for (ft = 0; ft < WTAP_NUM_FILE_TYPES; ft++) { if (ft == WTAP_FILE_UNKNOWN) continue; /* not a real file type */ @@ -1651,12 +1651,12 @@ build_file_format_list(HWND sf_hwnd) { } SendMessage(format_cb, CB_ADDSTRING, 0, (LPARAM) utf_8to16(s)); g_free(s); - SendMessage(format_cb, CB_SETITEMDATA, (LPARAM) index, (WPARAM) ft); + SendMessage(format_cb, CB_SETITEMDATA, (LPARAM) file_index, (WPARAM) ft); if (ft == g_filetype) { /* Default to the same format as the file, if it's supported. */ - item_to_select = index; + item_to_select = file_index; } - index++; + file_index++; } SendMessage(format_cb, CB_SETCURSEL, (WPARAM) item_to_select, 0); @@ -1667,7 +1667,7 @@ static UINT_PTR CALLBACK save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { HWND cur_ctrl; OFNOTIFY *notify = (OFNOTIFY *) l_param; - /*int new_filetype, index;*/ + /*int new_filetype, file_index;*/ switch(msg) { case WM_INITDIALOG: { @@ -1692,9 +1692,9 @@ save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { switch (w_param) { #if 0 case (CBN_SELCHANGE << 16) | EWFD_FILE_TYPE_COMBO: - index = SendMessage(cur_ctrl, CB_GETCURSEL, 0, 0); - if (index != CB_ERR) { - new_filetype = SendMessage(cur_ctrl, CB_GETITEMDATA, (WPARAM) index, 0); + file_index = SendMessage(cur_ctrl, CB_GETCURSEL, 0, 0); + if (file_index != CB_ERR) { + new_filetype = SendMessage(cur_ctrl, CB_GETITEMDATA, (WPARAM) file_index, 0); if (new_filetype != CB_ERR) { if (g_filetype != new_filetype) { if (wtap_can_save_with_wiretap(new_filetype, cfile.linktypes)) { @@ -1797,7 +1797,7 @@ static UINT_PTR CALLBACK export_specified_packets_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { HWND cur_ctrl; OFNOTIFY *notify = (OFNOTIFY *) l_param; - /*int new_filetype, index;*/ + /*int new_filetype, file_index;*/ switch(msg) { case WM_INITDIALOG: { @@ -1823,9 +1823,9 @@ export_specified_packets_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, switch (w_param) { #if 0 case (CBN_SELCHANGE << 16) | EWFD_FILE_TYPE_COMBO: - index = SendMessage(cur_ctrl, CB_GETCURSEL, 0, 0); - if (index != CB_ERR) { - new_filetype = SendMessage(cur_ctrl, CB_GETITEMDATA, (WPARAM) index, 0); + file_index = SendMessage(cur_ctrl, CB_GETCURSEL, 0, 0); + if (file_index != CB_ERR) { + new_filetype = SendMessage(cur_ctrl, CB_GETITEMDATA, (WPARAM) file_index, 0); if (new_filetype != CB_ERR) { if (g_filetype != new_filetype) { if (wtap_can_save_with_wiretap(new_filetype, cfile.linktypes)) { @@ -2281,7 +2281,7 @@ export_file_hook_proc(HWND ef_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { HWND cur_ctrl; OFNOTIFY *notify = (OFNOTIFY *) l_param; gboolean pkt_fmt_enable; - int i, index; + int i, filter_index; switch(msg) { case WM_INITDIALOG: { @@ -2312,13 +2312,13 @@ export_file_hook_proc(HWND ef_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { case CDN_FILEOK: break; case CDN_TYPECHANGE: - index = notify->lpOFN->nFilterIndex; + filter_index = notify->lpOFN->nFilterIndex; - if (index == 2) /* PostScript */ + if (filter_index == 2) /* PostScript */ print_args.format = PR_FMT_TEXT; else print_args.format = PR_FMT_PS; - if (index == 3 || index == 4 || index == 5 || index == 6) + if (filter_index == 3 || filter_index == 4 || filter_index == 5 || filter_index == 6) pkt_fmt_enable = FALSE; else pkt_fmt_enable = TRUE; |