Replace int opt; while with for loop in sandman

这个提交包含在:
C. McEnroe 2020-03-31 10:17:21 -04:00
父节点 ff78362826
当前提交 16b16a72e5

查看文件

@ -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;