mirror of
https://github.com/clearml/dropbear
synced 2025-02-01 19:34:11 +00:00
- Get rid of some ugly #defines
--HG-- extra : convert_revision : 4cfa02494ded17cdb068ec66581b720a5a0fd70b
This commit is contained in:
parent
b619e88f54
commit
d7c1e58217
@ -640,6 +640,9 @@ static int noptycommand(struct Channel *channel, struct ChanSess *chansess) {
|
||||
pid_t pid;
|
||||
unsigned int i;
|
||||
|
||||
const int FDIN = 0;
|
||||
const int FDOUT = 1;
|
||||
|
||||
TRACE(("enter noptycommand"))
|
||||
|
||||
/* redirect stdin/stdout/stderr */
|
||||
@ -669,8 +672,7 @@ static int noptycommand(struct Channel *channel, struct ChanSess *chansess) {
|
||||
}
|
||||
|
||||
/* redirect stdin/stdout */
|
||||
#define FDIN 0
|
||||
#define FDOUT 1
|
||||
|
||||
if ((dup2(infds[FDIN], STDIN_FILENO) < 0) ||
|
||||
(dup2(outfds[FDOUT], STDOUT_FILENO) < 0) ||
|
||||
(dup2(errfds[FDOUT], STDERR_FILENO) < 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user