summaryrefslogtreecommitdiffstats
path: root/libexec/talkd/process.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/process.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/process.c')
-rw-r--r--libexec/talkd/process.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c
index b3659a5..fb09300 100644
--- a/libexec/talkd/process.c
+++ b/libexec/talkd/process.c
@@ -60,23 +60,12 @@ static const char rcsid[] =
#include <string.h>
#include <syslog.h>
-int announce __P((CTL_MSG *, char *));
-int delete_invite __P((int));
-void do_announce __P((CTL_MSG *, CTL_RESPONSE *));
-CTL_MSG *find_request();
-CTL_MSG *find_match();
-int find_user __P((char *, char *));
-void insert_table __P((CTL_MSG *, CTL_RESPONSE *));
-int new_id __P((void));
-void print_request __P((char *, CTL_MSG *));
-void print_response __P((char *, CTL_RESPONSE *));
+#include "extern.h"
void
-process_request(mp, rp)
- register CTL_MSG *mp;
- register CTL_RESPONSE *rp;
+process_request(CTL_MSG *mp, CTL_RESPONSE *rp)
{
- register CTL_MSG *ptr;
+ CTL_MSG *ptr;
extern int debug;
char *s;
@@ -151,9 +140,7 @@ process_request(mp, rp)
}
void
-do_announce(mp, rp)
- register CTL_MSG *mp;
- CTL_RESPONSE *rp;
+do_announce(CTL_MSG *mp, CTL_RESPONSE *rp)
{
struct hostent *hp;
CTL_MSG *ptr;
@@ -199,8 +186,7 @@ do_announce(mp, rp)
* Search utmp for the local user
*/
int
-find_user(name, tty)
- char *name, *tty;
+find_user(const char *name, char *tty)
{
struct utmp ubuf;
int status;
OpenPOWER on IntegriCloud