chiark / gitweb /
noip.c: Shut up some GCC warnings.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 13 Mar 2012 21:28:39 +0000 (21:28 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 13 Mar 2012 21:28:39 +0000 (21:28 +0000)
I have no idea what fixup_p was meant to mean, but it's gone now.

noip.c

diff --git a/noip.c b/noip.c
index 9f82e25002a060e0ab2772e578d99656811fd3fe..1dac168f0df46ae1c3b66633e4ffaa8a72088979 100644 (file)
--- 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)