summaryrefslogtreecommitdiffstats
path: root/libexec/talkd/print.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/print.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/print.c')
-rw-r--r--libexec/talkd/print.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libexec/talkd/print.c b/libexec/talkd/print.c
index 8c1ba9b..94b87b4 100644
--- a/libexec/talkd/print.c
+++ b/libexec/talkd/print.c
@@ -47,6 +47,8 @@ static const char rcsid[] =
#include <stdio.h>
#include <syslog.h>
+#include "extern.h"
+
static char *types[] =
{ "leave_invite", "look_up", "delete", "announce" };
#define NTYPES (sizeof (types) / sizeof (types[0]))
@@ -56,9 +58,7 @@ static char *answers[] =
#define NANSWERS (sizeof (answers) / sizeof (answers[0]))
void
-print_request(cp, mp)
- char *cp;
- register CTL_MSG *mp;
+print_request(const char *cp, CTL_MSG *mp)
{
char tbuf[80], *tp;
@@ -72,9 +72,7 @@ print_request(cp, mp)
}
void
-print_response(cp, rp)
- char *cp;
- register CTL_RESPONSE *rp;
+print_response(const char *cp, CTL_RESPONSE *rp)
{
char tbuf[80], *tp, abuf[80], *ap;
OpenPOWER on IntegriCloud