androiddump: Change expected boolean result

Change boolean options to accept lower- and uppercase TRUE as
 positive result

Change-Id: I858918f7591bb7daf94444fb6c82f9aa37168d01
Reviewed-on: https://code.wireshark.org/review/8283
Reviewed-by: Roland Knall <rknall@gmail.com>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Roland Knall 2015-05-03 23:39:23 +02:00 committed by Alexis La Goutte
parent ae949aa9e5
commit 222597b1f4
1 changed files with 2 additions and 2 deletions

View File

@ -2121,14 +2121,14 @@ int main(int argc, char **argv) {
*adb_server_tcp_port = (unsigned short) strtoul(optarg, NULL, 10);
break;
case OPT_CONFIG_LOGCAT_TEXT:
logcat_text = (strcmp(optarg, "TRUE") == 0);
logcat_text = (g_ascii_strncasecmp(optarg, "TRUE", 4) == 0);
break;
case OPT_CONFIG_BT_SERVER_TCP_PORT:
bt_server_tcp_port = &local_bt_server_tcp_port;
*bt_server_tcp_port = (unsigned short) strtoul(optarg, NULL, 10);
break;
case OPT_CONFIG_BT_FORWARD_SOCKET:
bt_forward_socket = (strcmp(optarg, "TRUE") == 0);
bt_forward_socket = (g_ascii_strncasecmp(optarg, "TRUE", 4) == 0);
break;
case OPT_CONFIG_BT_LOCAL_IP:
bt_local_ip = strdup(optarg);