summaryrefslogtreecommitdiff
path: root/lib/libc/termios/tcgetsid.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2013-12-17 22:12:08 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2013-12-17 22:12:08 +0000
commit22561f70309f76ea3cccc7c6141aeeeb824b1f5f (patch)
tree02391c9e8b4db39249753d541c196d3daa2602b7 /lib/libc/termios/tcgetsid.c
parent8a0e4bd7cac3f17c4348b599341b33fd169eabd9 (diff)
The termios.h bits were missing from the initial commit.
Diffstat (limited to 'lib/libc/termios/tcgetsid.c')
-rw-r--r--lib/libc/termios/tcgetsid.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/termios/tcgetsid.c b/lib/libc/termios/tcgetsid.c
index a13b8748d8e..531179212ef 100644
--- a/lib/libc/termios/tcgetsid.c
+++ b/lib/libc/termios/tcgetsid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcgetsid.c,v 1.2 2013/12/17 17:55:59 naddy Exp $ */
+/* $OpenBSD: tcgetsid.c,v 1.3 2013/12/17 22:12:07 millert Exp $ */
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -29,7 +29,6 @@
*/
#include <sys/ioctl.h>
-#include <sys/types.h>
#include <termios.h>
pid_t
@@ -38,7 +37,7 @@ tcgetsid(int fd)
int s;
if (ioctl(fd, TIOCGSID, &s) < 0)
- return ((pid_t)-1);
+ return (-1);
- return ((pid_t)s);
+ return (s);
}