summaryrefslogtreecommitdiff
path: root/usr.bin/talk/invite.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-18 04:02:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-18 04:02:27 +0000
commit0fdee9fc4c513111890cb276e3050734c0e8b8c9 (patch)
tree5cab468ea847a2637773683e95a786710b7383b8 /usr.bin/talk/invite.c
parent8a60a215e4534c61e81ad6fe5e0b4833e1664a95 (diff)
Some changes inspired by FreeBSD...
o Kill annoying spaces at the end of lines o sigaction, not sigvec o warn/err where sensible o hstrerror() not herror() o defaults for erase, kill, and werase if not set o kill a needless refresh() after the beeps that was messing up the screen
Diffstat (limited to 'usr.bin/talk/invite.c')
-rw-r--r--usr.bin/talk/invite.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/talk/invite.c b/usr.bin/talk/invite.c
index 4f3a4a77ad9..4bf49412099 100644
--- a/usr.bin/talk/invite.c
+++ b/usr.bin/talk/invite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: invite.c,v 1.5 1998/04/28 22:13:27 pjanzen Exp $ */
+/* $OpenBSD: invite.c,v 1.6 1998/08/18 04:02:15 millert Exp $ */
/* $NetBSD: invite.c,v 1.3 1994/12/09 02:14:18 jtc Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)invite.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: invite.c,v 1.5 1998/04/28 22:13:27 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: invite.c,v 1.6 1998/08/18 04:02:15 millert Exp $";
#endif /* not lint */
#include "talk.h"
@@ -56,13 +56,13 @@ static char rcsid[] = "$OpenBSD: invite.c,v 1.5 1998/04/28 22:13:27 pjanzen Exp
/*
* There wasn't an invitation waiting, so send a request containing
* our sockt address to the remote talk daemon so it can invite
- * him
+ * him
*/
/*
* The msg.id's for the invitations
* on the local and remote machines.
- * These are used to delete the
+ * These are used to delete the
* invitations.
*/
int local_id, remote_id;
@@ -209,11 +209,11 @@ send_delete()
if (sendto(ctl_sockt, &msg, sizeof (msg), 0,
(struct sockaddr *)&daemon_addr,
sizeof (daemon_addr)) != sizeof(msg))
- perror("send_delete (remote)");
+ warn("send_delete (remote)");
msg.id_num = htonl(local_id);
daemon_addr.sin_addr = my_machine_addr;
if (sendto(ctl_sockt, &msg, sizeof (msg), 0,
(struct sockaddr *)&daemon_addr,
sizeof (daemon_addr)) != sizeof (msg))
- perror("send_delete (local)");
+ warn("send_delete (local)");
}