summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-30 20:44:19 +0000
committerderaadt <deraadt@openbsd.org>2006-03-30 20:44:19 +0000
commit5a996c843f5c0ec917fde9da25de6f2234884f90 (patch)
tree8b11d0d6851d2be69697a329b9c9369ca5b63ba5 /lib/libutil
parentdo an int & unsigned int dance because of shift of signed value; ok miod (diff)
downloadwireguard-openbsd-5a996c843f5c0ec917fde9da25de6f2234884f90.tar.xz
wireguard-openbsd-5a996c843f5c0ec917fde9da25de6f2234884f90.zip
please lint (without making anything else worse)
Diffstat (limited to 'lib/libutil')
-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);