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/msgs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.bin/talk/msgs.c') diff --git a/usr.bin/talk/msgs.c b/usr.bin/talk/msgs.c index e4a0977..f4cd413 100644 --- a/usr.bin/talk/msgs.c +++ b/usr.bin/talk/msgs.c @@ -55,14 +55,13 @@ int current_line = 0; /* ARGSUSED */ void -disp_msg(signo) - int signo __unused; +disp_msg(int signo __unused) { message(current_state); } void -start_msgs() +start_msgs(void) { struct itimerval itimer; @@ -74,7 +73,7 @@ start_msgs() } void -end_msgs() +end_msgs(void) { struct itimerval itimer; -- cgit v1.1