From 0fce1f20c8c05d31e47a510a02912163ff3d9287 Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 3 Dec 2001 21:33:59 +0000 Subject: [PATCH] Warns cleanup - don't declare ttyname(). Add FreeBSD ID to Makefile. --- usr.bin/tty/Makefile | 2 ++ usr.bin/tty/tty.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/tty/Makefile b/usr.bin/tty/Makefile index 5b914b23a4eb..14ed68fa5ebf 100644 --- a/usr.bin/tty/Makefile +++ b/usr.bin/tty/Makefile @@ -1,5 +1,7 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= tty +WARNS?= 2 .include diff --git a/usr.bin/tty/tty.c b/usr.bin/tty/tty.c index 5753e34069f5..00e7d57c4afc 100644 --- a/usr.bin/tty/tty.c +++ b/usr.bin/tty/tty.c @@ -57,7 +57,7 @@ main(argc, argv) char **argv; { int ch, sflag; - char *t, *ttyname(); + char *t; sflag = 0; while ((ch = getopt(argc, argv, "s")) != -1)