util: dial: no need for a static struct hints

This commit is contained in:
Hiltjo Posthuma 2021-05-06 01:16:13 +02:00
parent b188c78432
commit 81533f966e

4
util.c
View File

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