BSD 4_4 release
[unix-history] / usr / src / old / talk / talk / look_up.c
index 36122cd..dfe7137 100644 (file)
@@ -7,7 +7,7 @@
 /* from "@(#)look_up.c 5.1 (Berkeley) 6/6/85"; */
 
 #ifndef lint
 /* from "@(#)look_up.c 5.1 (Berkeley) 6/6/85"; */
 
 #ifndef lint
-static char sccsid[] = "@(#)look_up.c  6.2 (Berkeley) 7/29/86";
+static char sccsid[] = "@(#)look_up.c  6.3 (Berkeley) 10/17/92";
 #endif not lint
 
 #include "talk_ctl.h"
 #endif not lint
 
 #include "talk_ctl.h"
@@ -33,7 +33,8 @@ check_local()
 again:
        swapresponse(&response);
        response.addr.sin_family = AF_INET;
 again:
        swapresponse(&response);
        response.addr.sin_family = AF_INET;
-       if (connect(sockt, &response.addr, sizeof(response.addr)) != -1)
+       if (connect(sockt,
+           (struct sockaddr *)&response.addr, sizeof(response.addr)) != -1)
                return (1);
        if (errno == EINTR)
                goto again;
                return (1);
        if (errno == EINTR)
                goto again;
@@ -110,7 +111,7 @@ swapresponse(rsp)
 }
 #endif
 
 }
 #endif
 
-#ifndef sun
+#ifdef vax
 struct ctl_response_sun {
        char type;
        char answer;
 struct ctl_response_sun {
        char type;
        char answer;