summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-30 20:44:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-30 20:44:20 +0000
commit25de0178034dad9061c97206275c2765ae34c41b (patch)
treeb94eb1636d631e1b116395954ba8f2611400f91f
parentbcd2ccc8b7a3ba5b505aec33d0bae3faa6c25204 (diff)
please lint (without making anything else worse)
-rw-r--r--lib/libutil/pty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index a9d80528e95..fff3274d2de 100644
--- a/lib/libutil/pty.c
+++ b/lib/libutil/pty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pty.c,v 1.14 2005/08/02 21:46:23 espie Exp $ */
+/* $OpenBSD: pty.c,v 1.15 2006/03/30 20:44:19 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -87,13 +87,13 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
if (termp)
(void) tcsetattr(slave, TCSAFLUSH, termp);
if (winp)
- (void) ioctl(slave, TIOCSWINSZ, (char *)winp);
+ (void) ioctl(slave, TIOCSWINSZ, winp);
return (0);
walkit:
if ((gr = getgrnam("tty")) != NULL)
ttygid = gr->gr_gid;
else
- ttygid = -1;
+ ttygid = (gid_t)-1;
for (cp1 = TTY_LETTERS; *cp1; cp1++) {
line[8] = *cp1;
@@ -123,7 +123,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
TCSAFLUSH, termp);
if (winp)
(void) ioctl(slave, TIOCSWINSZ,
- (char *)winp);
+ winp);
return (0);
}
(void) close(master);