aboutsummaryrefslogtreecommitdiff
path: root/pty.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-24 19:53:37 +0000
committernicm <nicm>2017-01-24 19:53:37 +0000
commit85338bb75fa4fbabfdbefeb995bdea04efaf2db4 (patch)
treeb5780e6de5d37e5243684dc94fcf4394e81e6683 /pty.c
parent61fce272ea60f5096711ee554c56aef9cca8c654 (diff)
downloadrtmux-85338bb75fa4fbabfdbefeb995bdea04efaf2db4.tar.gz
rtmux-85338bb75fa4fbabfdbefeb995bdea04efaf2db4.tar.bz2
rtmux-85338bb75fa4fbabfdbefeb995bdea04efaf2db4.zip
Add support for custom command aliases, this is an array option which
contains items of the form "alias=command". This is consulted when an unknown command is parsed.
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);