diff options
author | delphij <delphij@FreeBSD.org> | 2008-04-28 21:08:42 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-04-28 21:08:42 +0000 |
commit | 27563c633dabd72e3b50f8f07e4505a40b4c82ad (patch) | |
tree | 97dad06a487d87e06e7131be3665c891231215b7 /usr.bin/talk/look_up.c | |
parent | 2723f83a5a450a3124fab55051d0bae64dce7f3e (diff) | |
download | FreeBSD-src-27563c633dabd72e3b50f8f07e4505a40b4c82ad.zip FreeBSD-src-27563c633dabd72e3b50f8f07e4505a40b4c82ad.tar.gz |
ANSIfy function prototypes. While I am there, constify some parameters and
make use of C99 sparse initialization for static variables, this makes talk(1)
to compile cleanly with WARNS=6.
Diffstat (limited to 'usr.bin/talk/look_up.c')
-rw-r--r-- | usr.bin/talk/look_up.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/talk/look_up.c b/usr.bin/talk/look_up.c index 1ff1477..1ccf23c 100644 --- a/usr.bin/talk/look_up.c +++ b/usr.bin/talk/look_up.c @@ -53,7 +53,7 @@ static const char sccsid[] = "@(#)look_up.c 8.1 (Berkeley) 6/6/93"; * See if the local daemon has an invitation for us. */ int -check_local() +check_local(void) { CTL_RESPONSE response; CTL_RESPONSE *rp = &response; @@ -106,8 +106,7 @@ check_local() * Look for an invitation on 'machine' */ int -look_for_invite(rp) - CTL_RESPONSE *rp; +look_for_invite(CTL_RESPONSE *rp) { current_state = "Checking for invitation on caller's machine"; ctl_transact(his_machine_addr, msg, LOOK_UP, rp); |