summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/msgs.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-11 23:51:14 +0000
committermarkm <markm@FreeBSD.org>2001-12-11 23:51:14 +0000
commita82545dcd4cfdc337e6904afa3ab43097134c360 (patch)
treef29bbbc79d4e1b190fcac1c308cb1862054576e2 /usr.bin/talk/msgs.c
parent7f940dc06cf848e2e7af8e1dbc9c03d85f37d267 (diff)
downloadFreeBSD-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/msgs.c')
-rw-r--r--usr.bin/talk/msgs.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/talk/msgs.c b/usr.bin/talk/msgs.c
index 82c5038..e4a0977 100644
--- a/usr.bin/talk/msgs.c
+++ b/usr.bin/talk/msgs.c
@@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
-#if 0
-static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93";
+static const char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
/*
* A package to display what is happening every MSG_INTERVAL seconds
@@ -45,17 +45,18 @@ static const char rcsid[] =
*/
#include <signal.h>
+
#include "talk.h"
#define MSG_INTERVAL 4
-char *current_state;
+const char *current_state;
int current_line = 0;
/* ARGSUSED */
void
disp_msg(signo)
- int signo;
+ int signo __unused;
{
message(current_state);
}
OpenPOWER on IntegriCloud