From a82545dcd4cfdc337e6904afa3ab43097134c360 Mon Sep 17 00:00:00 2001 From: markm Date: Tue, 11 Dec 2001 23:51:14 +0000 Subject: WARNS=2 fixes with NO_WERROR set because of system-header originating warnings. Use __FBSDID(). --- usr.bin/talk/look_up.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'usr.bin/talk/look_up.c') diff --git a/usr.bin/talk/look_up.c b/usr.bin/talk/look_up.c index 3c6f3ed..d251e1c 100644 --- a/usr.bin/talk/look_up.c +++ b/usr.bin/talk/look_up.c @@ -31,18 +31,20 @@ * SUCH DAMAGE. */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint -#if 0 -static char sccsid[] = "@(#)look_up.c 8.1 (Berkeley) 6/6/93"; +static const char sccsid[] = "@(#)look_up.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ -#include #include #include #include + +#include + #include "talk_ctl.h" #include "talk.h" @@ -53,7 +55,7 @@ int check_local() { CTL_RESPONSE response; - register CTL_RESPONSE *rp = &response; + CTL_RESPONSE *rp = &response; /* the rest of msg was set up in get_names */ #ifdef MSG_EOR @@ -103,8 +105,6 @@ int look_for_invite(rp) CTL_RESPONSE *rp; { - struct in_addr machine_addr; - current_state = "Checking for invitation on caller's machine"; ctl_transact(his_machine_addr, msg, LOOK_UP, rp); /* the switch is for later options, such as multiple invitations */ -- cgit v1.1