about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-31 10:17:21 -0400
committerJune McEnroe <june@causal.agency>2020-03-31 10:17:21 -0400
commit16b16a72e54e05c5ad2c251c2a9c71a92ff11400 (patch)
tree958ee67805e2bae5db4cbf0d0bb89bf07fdf254f /scripts
parentReplace some declaration; while loops with for loops (diff)
downloadcatgirl-16b16a72e54e05c5ad2c251c2a9c71a92ff11400.tar.gz
catgirl-16b16a72e54e05c5ad2c251c2a9c71a92ff11400.zip
Replace int opt; while with for loop in sandman
Diffstat (limited to 'scripts')
-rw-r--r--scripts/sandman.m3
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;
2018-09-11ui-patch: ban sprintf()Christian Hesse 2018-09-11ui-log: ban strncpy()Christian Hesse 2018-09-11ui-log: ban strcpy()Christian Hesse 2018-09-11parsing: ban sprintf()Christian Hesse 2018-09-11parsing: ban strncpy()Christian Hesse 2018-08-28filters: generate anchor links from markdownChristian Hesse 2018-08-03Bump version.Jason A. Donenfeld 2018-08-03clone: fix directory traversalJason A. Donenfeld 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev