diff options
author | markm <markm@FreeBSD.org> | 2001-12-11 23:51:14 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-11 23:51:14 +0000 |
commit | a82545dcd4cfdc337e6904afa3ab43097134c360 (patch) | |
tree | f29bbbc79d4e1b190fcac1c308cb1862054576e2 /usr.bin/talk/look_up.c | |
parent | 7f940dc06cf848e2e7af8e1dbc9c03d85f37d267 (diff) | |
download | FreeBSD-src-a82545dcd4cfdc337e6904afa3ab43097134c360.zip FreeBSD-src-a82545dcd4cfdc337e6904afa3ab43097134c360.tar.gz |
WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().
Diffstat (limited to 'usr.bin/talk/look_up.c')
-rw-r--r-- | usr.bin/talk/look_up.c | 18 |
1 files changed, 9 insertions, 9 deletions
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 <sys/cdefs.h> + +__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 <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <protocols/talkd.h> + +#include <errno.h> + #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 */ |