diff options
Diffstat (limited to 'libexec/talkd/announce.c')
-rw-r--r-- | libexec/talkd/announce.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c index 2761c41..6d33005 100644 --- a/libexec/talkd/announce.c +++ b/libexec/talkd/announce.c @@ -58,11 +58,10 @@ static const char rcsid[] = #include <vis.h> #include "ttymsg.h" +#include "extern.h" extern char hostname[]; -int print_mesg __P((char *, FILE *, CTL_MSG *, char *)); - /* * Announce an invitation to talk. */ @@ -72,9 +71,7 @@ int print_mesg __P((char *, FILE *, CTL_MSG *, char *)); * a talk is requested. */ int -announce(request, remote_machine) - CTL_MSG *request; - char *remote_machine; +announce(CTL_MSG *request, const char *remote_machine) { char full_tty[32]; FILE *tf; @@ -98,11 +95,8 @@ announce(request, remote_machine) * in in vi at the time */ int -print_mesg(tty, tf, request, remote_machine) - char *tty; - FILE *tf; - CTL_MSG *request; - char *remote_machine; +print_mesg(const char *tty, FILE *tf, CTL_MSG *request, + const char *remote_machine) { struct timeval clock; time_t clock_sec; |