summaryrefslogtreecommitdiff
path: root/usr.bin/talk/look_up.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-04-28 22:13:33 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-04-28 22:13:33 +0000
commite0a2bdb7580789c975aa1d917942aa148ba05b27 (patch)
treec2f7dde8a9d6cef1aabc1183b8fd4cf0ff2699e7 /usr.bin/talk/look_up.c
parent6b0fc1fefba70fb596defe3e4b4bbea50899e48d (diff)
NetBSD-based -Wall cleanup
Diffstat (limited to 'usr.bin/talk/look_up.c')
-rw-r--r--usr.bin/talk/look_up.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/talk/look_up.c b/usr.bin/talk/look_up.c
index d1c06d227da..9550026f8fb 100644
--- a/usr.bin/talk/look_up.c
+++ b/usr.bin/talk/look_up.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: look_up.c,v 1.3 1996/06/26 05:40:24 deraadt Exp $ */
+/* $OpenBSD: look_up.c,v 1.4 1998/04/28 22:13:29 pjanzen Exp $ */
/* $NetBSD: look_up.c,v 1.3 1994/12/09 02:14:21 jtc Exp $ */
/*
@@ -38,20 +38,18 @@
#if 0
static char sccsid[] = "@(#)look_up.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: look_up.c,v 1.3 1996/06/26 05:40:24 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: look_up.c,v 1.4 1998/04/28 22:13:29 pjanzen Exp $";
#endif /* not lint */
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <protocols/talkd.h>
+#include "talk.h"
#include <errno.h>
+#include <unistd.h>
#include "talk_ctl.h"
-#include "talk.h"
/*
* See if the local daemon has an invitation for us.
*/
+int
check_local()
{
CTL_RESPONSE response;
@@ -99,11 +97,10 @@ check_local()
/*
* Look for an invitation on 'machine'
*/
+int
look_for_invite(rp)
CTL_RESPONSE *rp;
{
- struct in_addr machine_addr;
-
current_state = "Checking for invitation on caller's machine";
ctl_transact(his_machine_addr, msg, LOOK_UP, rp);
/* the switch is for later options, such as multiple invitations */