aboutsummaryrefslogtreecommitdiff
path: root/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'pty.c')
-rw-r--r--pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pty.c b/pty.c
index 05a02ef0..39794afc 100644
--- a/pty.c
+++ b/pty.c
@@ -45,7 +45,7 @@ pty_fork(int ptmfd, int *fd, char *name, size_t namelen, struct winsize *ws)
struct ptmget ptm;
pid_t pid;
- if ((ioctl(ptmfd, PTMGET, &ptm) == -1))
+ if (ioctl(ptmfd, PTMGET, &ptm) == -1)
return (-1);
strlcpy(name, ptm.sn, namelen);