Skip to content

Commit 507d608

Browse files
committed
Cleanup setting of boolean arguments
Before this patch, the code had mixed usage of `1`/`true` and `0`/`false`. This patch will convert all of those cases to `true` and `false`.
1 parent 9651858 commit 507d608

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/ios-deploy/ios-deploy.m

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,11 +1788,11 @@ int main(int argc, char *argv[]) {
17881788
{
17891789
switch (ch) {
17901790
case 'm':
1791-
install = 0;
1792-
debug = 1;
1791+
install = false;
1792+
debug = true;
17931793
break;
17941794
case 'd':
1795-
debug = 1;
1795+
debug = true;
17961796
break;
17971797
case 'i':
17981798
device_id = optarg;
@@ -1804,29 +1804,29 @@ int main(int argc, char *argv[]) {
18041804
args = optarg;
18051805
break;
18061806
case 'v':
1807-
verbose = 1;
1807+
verbose = true;
18081808
break;
18091809
case 't':
18101810
_timeout = atoi(optarg);
18111811
break;
18121812
case 'u':
1813-
unbuffered = 1;
1813+
unbuffered = true;
18141814
break;
18151815
case 'n':
1816-
nostart = 1;
1816+
nostart = true;
18171817
break;
18181818
case 'I':
18191819
interactive = false;
1820-
debug = 1;
1820+
debug = true;
18211821
break;
18221822
case 'L':
18231823
interactive = false;
18241824
justlaunch = true;
1825-
debug = 1;
1825+
debug = true;
18261826
break;
18271827
case 'c':
18281828
detect_only = true;
1829-
debug = 1;
1829+
debug = true;
18301830
break;
18311831
case 'V':
18321832
show_version();
@@ -1835,7 +1835,7 @@ int main(int argc, char *argv[]) {
18351835
port = atoi(optarg);
18361836
break;
18371837
case 'r':
1838-
uninstall = 1;
1838+
uninstall = true;
18391839
break;
18401840
case '9':
18411841
command_only = true;

0 commit comments

Comments
 (0)