diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-04-28 22:13:33 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-04-28 22:13:33 +0000 |
commit | e0a2bdb7580789c975aa1d917942aa148ba05b27 (patch) | |
tree | c2f7dde8a9d6cef1aabc1183b8fd4cf0ff2699e7 /usr.bin/talk/msgs.c | |
parent | 6b0fc1fefba70fb596defe3e4b4bbea50899e48d (diff) |
NetBSD-based -Wall cleanup
Diffstat (limited to 'usr.bin/talk/msgs.c')
-rw-r--r-- | usr.bin/talk/msgs.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/talk/msgs.c b/usr.bin/talk/msgs.c index ba8b141e47f..3a7086deab0 100644 --- a/usr.bin/talk/msgs.c +++ b/usr.bin/talk/msgs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msgs.c,v 1.2 1996/06/26 05:40:25 deraadt Exp $ */ +/* $OpenBSD: msgs.c,v 1.3 1998/04/28 22:13:30 pjanzen Exp $ */ /* $NetBSD: msgs.c,v 1.3 1994/12/09 02:14:22 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: msgs.c,v 1.2 1996/06/26 05:40:25 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: msgs.c,v 1.3 1998/04/28 22:13:30 pjanzen Exp $"; #endif /* not lint */ /* @@ -46,10 +46,10 @@ static char rcsid[] = "$OpenBSD: msgs.c,v 1.2 1996/06/26 05:40:25 deraadt Exp $" * if we are slow connecting. */ +#include "talk.h" #include <sys/time.h> #include <signal.h> #include <stdio.h> -#include "talk.h" #define MSG_INTERVAL 4 @@ -57,11 +57,13 @@ char *current_state; int current_line = 0; void -disp_msg() +disp_msg(dummy) + int dummy; { message(current_state); } +void start_msgs() { struct itimerval itimer; @@ -73,6 +75,7 @@ start_msgs() setitimer(ITIMER_REAL, &itimer, (struct itimerval *)0); } +void end_msgs() { struct itimerval itimer; |