From 50f99331097302f77db413ba7ad7299d928163eb Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 16:32:15 +0000 Subject: Yet Another Monster Commit: - WARNSify - getopt returns -1 not EOF - select() uses an fd_set, not int/long; modify code to use FD_* et al instead of direct bitwise operations - in otto.c::look (renamed to ottolook() to prevent name clash), the case WEST section had a 'goto cont_east', instead of 'goto cont_west'. (picked up by WARNS=1, because cont_west was an unused label because of this typo). probably meant that otto got lost in the maze :-/ - deprecate register, convert bcmp() -> memcmp() --- hunt/huntd/faketalk.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'hunt/huntd/faketalk.c') diff --git a/hunt/huntd/faketalk.c b/hunt/huntd/faketalk.c index 48f17990..e594b12e 100644 --- a/hunt/huntd/faketalk.c +++ b/hunt/huntd/faketalk.c @@ -1,3 +1,4 @@ +/* $NetBSD: faketalk.c,v 1.3 1997/10/10 16:33:31 lukem Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -8,18 +9,25 @@ * specifies the terms and conditions for redistribution. */ +#include +#ifndef lint +__RCSID("$NetBSD: faketalk.c,v 1.3 1997/10/10 16:33:31 lukem Exp $"); +#endif /* not lint */ + #include "bsd.h" #if defined(TALK_43) || defined(TALK_42) +# include +# include +# include +# include +# include # include # include -# include +# include +# include "hunt.h" # include "talk_ctl.h" -# include -# include -# include -extern int errno; # define TRUE 1 # define FALSE 0 @@ -36,12 +44,16 @@ extern int errno; extern char *my_machine_name; extern char *First_arg, *Last_arg; +static void do_announce __P((char *)); +SIGNAL_TYPE exorcise __P((int)); + /* * exorcise - disspell zombies */ SIGNAL_TYPE -exorcise() +exorcise(dummy) + int dummy; { (void) wait(0); } @@ -51,6 +63,7 @@ exorcise() * and fake a talk request to each address thus found. */ +void faketalk() { struct servent *sp; @@ -171,6 +184,7 @@ faketalk() * These are used to delete the invitations. */ +static void do_announce(s) char *s; { -- cgit v1.2.3