summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/io.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/io.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/io.c')
-rw-r--r--usr.bin/talk/io.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c
index 782314f..bcbfe6f 100644
--- a/usr.bin/talk/io.c
+++ b/usr.bin/talk/io.c
@@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
-#if 0
-static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";
+static const char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
/*
* This file contains the I/O handling and the exchange of
@@ -45,12 +45,14 @@ static const char rcsid[] =
* ctl.c
*/
+#include <sys/filio.h>
+
#include <errno.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/filio.h>
#include <unistd.h>
+
#include "talk.h"
#include "talk_ctl.h"
@@ -146,7 +148,7 @@ talk()
*/
void
p_error(string)
- char *string;
+ const char *string;
{
wmove(my_win.x_win, current_line, 0);
wprintw(my_win.x_win, "[%s : %s (%d)]\n",
@@ -162,7 +164,7 @@ p_error(string)
*/
void
message(string)
- char *string;
+ const char *string;
{
wmove(my_win.x_win, current_line, 0);
wprintw(my_win.x_win, "[%s]\n", string);
OpenPOWER on IntegriCloud