From 27563c633dabd72e3b50f8f07e4505a40b4c82ad Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 28 Apr 2008 21:08:42 +0000 Subject: 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. --- usr.bin/talk/look_up.c | 5 ++--- 1 file changed, 2 insertions(+), 3 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 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); -- cgit v1.1