From 092218dea7a9c0a2ada1d50a5db1ae37fd25e21b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 2 Apr 2020 16:53:52 -0400 Subject: Use for loop for getopt in calico --- dispatch.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit 1.4.1 ptgroup label='branches'> dontfiles
summary refs log tree commit diff
path: root/txt/.notemap (unfollow)
Commit message (Expand)Author
2020-09-12Move /opt/local behind /usr againJune McEnroe
2020-09-12Enable toc in cgit renderings of man pagesJune McEnroe
2020-09-11Install mandoc on macOSJune McEnroe
2020-09-11Rewrite install script yet againJune McEnroe
2020-09-11Remove NetBSD from install scriptJune McEnroe
2020-09-11Use MacPorts rather than pkgsrcJune McEnroe
2020-09-11Add debian VM name to sshJune McEnroe
2020-09-11Add influencer tweetJune McEnroe
2020-09-10Add The Kingdom of GodsJune McEnroe
2020-09-07Add SunglassesJune McEnroe
2020-09-06Add Between the BreathsJune McEnroe
2020-09-04Open /dev/tty in nudgeJune McEnroe
2020-09-04Add nudgeJune McEnroe
2020-09-03Build fbclock with -lzJune McEnroe
2020-08-29Add tweets from retweetsJune McEnroe