diff options
author | 2015-09-11 08:00:27 +0000 | |
---|---|---|
committer | 2015-09-11 08:00:27 +0000 | |
commit | f6e8e2246c10fcca3c3da5498ff0bead2991171d (patch) | |
tree | c09748a200baa1f6eac59054d8cec3d4db977186 | |
parent | in6_embedscope() needs to lose some weight. Remove the last argument. (diff) | |
download | wireguard-openbsd-f6e8e2246c10fcca3c3da5498ff0bead2991171d.tar.xz wireguard-openbsd-f6e8e2246c10fcca3c3da5498ff0bead2991171d.zip |
Remove redundant assignment
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
-rw-r--r-- | bin/ksh/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/io.c b/bin/ksh/io.c index fa4e8016bab..f98e136ca29 100644 --- a/bin/ksh/io.c +++ b/bin/ksh/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.25 2014/08/11 20:28:47 guenther Exp $ */ +/* $OpenBSD: io.c,v 1.26 2015/09/11 08:00:27 guenther Exp $ */ /* * shell buffered IO and formatted output @@ -296,7 +296,7 @@ check_fd(char *name, int mode, const char **emsgp) if (isdigit((unsigned char)name[0]) && !name[1]) { fd = name[0] - '0'; - if ((fl = fcntl(fd = name[0] - '0', F_GETFL, 0)) < 0) { + if ((fl = fcntl(fd, F_GETFL, 0)) < 0) { if (emsgp) *emsgp = "bad file descriptor"; return -1; |