diff options
author | C. McEnroe | 2020-03-31 10:17:21 -0400 |
---|---|---|
committer | C. McEnroe | 2020-03-31 10:17:21 -0400 |
commit | 16b16a72e54e05c5ad2c251c2a9c71a92ff11400 (patch) | |
tree | 958ee67805e2bae5db4cbf0d0bb89bf07fdf254f /scripts | |
parent | ff783628268470acc02e52126d6a357691723fba (diff) |
Replace int opt; while with for loop in sandman
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/sandman.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/sandman.m b/scripts/sandman.m index 838920d..99899ab 100644 --- a/scripts/sandman.m +++ b/scripts/sandman.m @@ -44,8 +44,7 @@ static void handler(int signal) { int main(int argc, char *argv[]) { uint delay = 8; - int opt; - while (0 < (opt = getopt(argc, argv, "t:"))) { + for (int opt; 0 < (opt = getopt(argc, argv, "t:"));) { switch (opt) { break; case 't': delay = strtoul(optarg, NULL, 10); break; default: return EX_USAGE; |