From: Mark Wooding Date: Tue, 13 Mar 2012 21:28:39 +0000 (+0000) Subject: noip.c: Shut up some GCC warnings. X-Git-Tag: 1.0.8~2 X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/commitdiff_plain/65f3786c5f1a124f3e150be750b84d8d37aadd1f noip.c: Shut up some GCC warnings. I have no idea what fixup_p was meant to mean, but it's gone now. --- diff --git a/noip.c b/noip.c index 9f82e25..1dac168 100644 --- a/noip.c +++ b/noip.c @@ -879,14 +879,12 @@ int bind(int sk, const struct sockaddr *sa, socklen_t len) int connect(int sk, const struct sockaddr *sa, socklen_t len) { struct sockaddr_un sun; - int fixup_p = 0; int rc; switch (sa->sa_family) { case AF_INET: PRESERVING_ERRNO({ do_implicit_bind(sk, &sa, &len, &sun); - fixup_p = 1; }); rc = real_connect(sk, sa, len); if (rc < 0) { @@ -1105,7 +1103,7 @@ static void get_local_ipaddrs(void) /* Print the given message to standard error. Avoids stdio. */ static void printerr(const char *p) - { int hunoz; hunoz = write(STDERR_FILENO, p, strlen(p)); } + { if (write(STDERR_FILENO, p, strlen(p))) ; } /* Create the socket directory, being careful about permissions. */ static void create_sockdir(void)