about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dispatch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dispatch.c b/dispatch.c
index c558729..1396f66 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -151,8 +151,7 @@ int main(int argc, char *argv[]) {
 	const char *path = NULL;
 	int timeout = 1000;
 
-	int opt;
-	while (0 < (opt = getopt(argc, argv, "H:P:t:"))) {
+	for (int opt; 0 < (opt = getopt(argc, argv, "H:P:t:"));) {
 		switch (opt) {
 			break; case 'H': host = optarg;
 			break; case 'P': port = optarg;