summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-03-01 23:35:07 -0800
committerJP Abgrall <jpa@google.com>2011-03-01 23:35:07 -0800
commit2d13d1408bef9e26cc418e6fc2579dfd12378a3c (patch)
tree3ff4dabc1cf0b252826cde1c9f03c6b673553c17 /fastboot
parente05b9c75c2fd446284a7b35ae6be5bae1bfe3cba (diff)
downloadsystem_core-2d13d1408bef9e26cc418e6fc2579dfd12378a3c.zip
system_core-2d13d1408bef9e26cc418e6fc2579dfd12378a3c.tar.gz
system_core-2d13d1408bef9e26cc418e6fc2579dfd12378a3c.tar.bz2
fastboot: fix arg handling causing no-op.
Change-Id: I89d4a6d14e542d8f2d7832d94b0a7cee6eb88305
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index e79e6c2..2ddc4f8 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -525,7 +525,7 @@ void do_flashall(void)
}
#define skip(n) do { argc -= (n); argv += (n); } while (0)
-#define require(n) do { if (argc < (n)) usage(); exit(1);} while (0)
+#define require(n) do { if (argc < (n)) {usage(); exit(1);}} while (0)
int do_oem_command(int argc, char **argv)
{