summaryrefslogtreecommitdiff
path: root/lib/libc/gen/isatty.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-04-17 17:40:36 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-04-17 17:40:36 +0000
commitf8ffcc0023521d2938d013a064aafa8b97fdc6c4 (patch)
treeeeb4e10404170c661ad78ddfadba9e51f222f564 /lib/libc/gen/isatty.c
parent8f8f0c818581c09d982ddb812384f11f397421b3 (diff)
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.
Diffstat (limited to 'lib/libc/gen/isatty.c')
-rw-r--r--lib/libc/gen/isatty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/isatty.c b/lib/libc/gen/isatty.c
index 1915c6c3392..0a94648a29f 100644
--- a/lib/libc/gen/isatty.c
+++ b/lib/libc/gen/isatty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isatty.c,v 1.7 2007/05/23 18:30:07 kurt Exp $ */
+/* $OpenBSD: isatty.c,v 1.8 2013/04/17 17:40:35 tedu Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -29,6 +29,7 @@
*/
#include <termios.h>
+#include <unistd.h>
int
isatty(int fd)