diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-08-30 16:41:17 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-08-30 16:41:17 +0200 |
| commit | fe73c8d55795a8fe7e95fc2c00af6899817b96b8 (patch) | |
| tree | 1b772243f00c63d16ee4cf8bf6f80a6c7a53ee91 /examples | |
| parent | 58598eb7093561d914a6254697e137b815f1fdfc (diff) | |
| download | busybox-w32-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.tar.gz busybox-w32-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.tar.bz2 busybox-w32-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.zip | |
*: style fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shutdown-1.0/script/hardshutdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shutdown-1.0/script/hardshutdown.c b/examples/shutdown-1.0/script/hardshutdown.c index b4af26f0f..c90f55396 100644 --- a/examples/shutdown-1.0/script/hardshutdown.c +++ b/examples/shutdown-1.0/script/hardshutdown.c | |||
| @@ -115,7 +115,7 @@ int main(int argc, char **argv) | |||
| 115 | if (ptr) | 115 | if (ptr) |
| 116 | prog = ptr+1; | 116 | prog = ptr+1; |
| 117 | 117 | ||
| 118 | for (c=1; c < argc; c++) { | 118 | for (c = 1; c < argc; c++) { |
| 119 | if (argv[c][0] >= '0' && argv[c][0] <= '9') { | 119 | if (argv[c][0] >= '0' && argv[c][0] <= '9') { |
| 120 | t.tv_sec = strtol(argv[c], NULL, 10); | 120 | t.tv_sec = strtol(argv[c], NULL, 10); |
| 121 | continue; | 121 | continue; |
| @@ -124,7 +124,7 @@ int main(int argc, char **argv) | |||
| 124 | usage(); | 124 | usage(); |
| 125 | return 1; | 125 | return 1; |
| 126 | } | 126 | } |
| 127 | for (i=1; argv[c][i]; i++) { | 127 | for (i = 1; argv[c][i]; i++) { |
| 128 | switch (argv[c][i]) { | 128 | switch (argv[c][i]) { |
| 129 | case 'h': | 129 | case 'h': |
| 130 | action = HALT; | 130 | action = HALT; |
