util: dial: no need for a static struct hints
This commit is contained in:
parent
b188c78432
commit
81533f966e
4
util.c
4
util.c
@ -18,9 +18,9 @@ eprint(const char *fmt, ...) {
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
dial(char *host, char *port) {
|
dial(char *host, char *port) {
|
||||||
static struct addrinfo hints;
|
struct addrinfo hints;
|
||||||
int fd;
|
|
||||||
struct addrinfo *res, *r;
|
struct addrinfo *res, *r;
|
||||||
|
int fd;
|
||||||
|
|
||||||
memset(&hints, 0, sizeof hints);
|
memset(&hints, 0, sizeof hints);
|
||||||
hints.ai_family = AF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
|
Loading…
Reference in New Issue
Block a user