commit | 87a56eb6cc616150d536ed0e70cf8e69e1d5edf6 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Mar 05 01:39:56 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 05 01:39:57 2014 +0000 |
tree | 4c219f28d52c7ec127bc5b5678aaa0a4bf9aa6c4 | |
parent | 2a16a5847a2811626a108f8cbd7606680647df86 [diff] | |
parent | 1c3cb91f72a9745f2956c160729887488e2806ed [diff] |
Merge "Use the getopt function in compliance with the standard."
diff --git a/reboot/reboot.c b/reboot/reboot.c index d9a4227..007dfba 100644 --- a/reboot/reboot.c +++ b/reboot/reboot.c
@@ -35,7 +35,7 @@ c = getopt(argc, argv, "p"); - if (c == EOF) { + if (c == -1) { break; }