summaryrefslogtreecommitdiffstats
path: root/libexec/talkd/announce.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-05 21:06:56 +0000
committerimp <imp@FreeBSD.org>2002-02-05 21:06:56 +0000
commit9d4730cf181e1e1c69ac119ab18ae3ae3ac0f0d6 (patch)
tree9a1dbcebb03dc8719cb20fa539082da1904584e2 /libexec/talkd/announce.c
parentd0f44978bc7960bcc2c2286a05177c175f11926e (diff)
downloadFreeBSD-src-9d4730cf181e1e1c69ac119ab18ae3ae3ac0f0d6.zip
FreeBSD-src-9d4730cf181e1e1c69ac119ab18ae3ae3ac0f0d6.tar.gz
o Move externs to extern.h
o Use new-style prototypes exclusively rather than the old foo() style. o Use new-style function definitions. o remove register o make functions passed to signal have the right signature. o do minor const poisoning.
Diffstat (limited to 'libexec/talkd/announce.c')
-rw-r--r--libexec/talkd/announce.c14
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;
OpenPOWER on IntegriCloud