commit 81533f966ec31049c6159eac482bb821cb1e54ef
Author:     Hiltjo Posthuma <[email protected]>
AuthorDate: Thu May 6 01:16:13 2021 +0200
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Thu May 6 01:16:13 2021 +0200

    util: dial: no need for a static struct hints

diff --git a/util.c b/util.c
index c2982fd..cb966d4 100644
--- a/util.c
+++ b/util.c
@@ -18,9 +18,9 @@ eprint(const char *fmt, ...) {
 
 static int
 dial(char *host, char *port) {
-       static struct addrinfo hints;
-       int fd;
+       struct addrinfo hints;
        struct addrinfo *res, *r;
+       int fd;
 
        memset(&hints, 0, sizeof hints);
        hints.ai_family = AF_UNSPEC;

Reply via email to