summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/msgs.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2008-04-28 21:08:42 +0000
committerdelphij <delphij@FreeBSD.org>2008-04-28 21:08:42 +0000
commit27563c633dabd72e3b50f8f07e4505a40b4c82ad (patch)
tree97dad06a487d87e06e7131be3665c891231215b7 /usr.bin/talk/msgs.c
parent2723f83a5a450a3124fab55051d0bae64dce7f3e (diff)
downloadFreeBSD-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/msgs.c')
-rw-r--r--usr.bin/talk/msgs.c7
1 files changed, 3 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud