Note rsyncd-over-ssh and documentation TODOs.
[rsync/rsync.git] / socket.c
index 94c28a6..0ad8a16 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -298,6 +298,7 @@ static int open_socket_in(int type, int port, const char *bind_address,
                        case EPROTONOSUPPORT:
                        case EAFNOSUPPORT:
                        case EPFNOSUPPORT:
+                       case EINVAL:
                                /* See if there's another address that will work... */
                                continue;
                        }
@@ -578,7 +579,7 @@ char *client_addr(int fd)
 }
 
 
-static sa_family_t get_sockaddr_family(const struct sockaddr_storage *ss)
+static int get_sockaddr_family(const struct sockaddr_storage *ss)
 {
        return ((struct sockaddr *) ss)->sa_family;
 }