# HG changeset patch # User Matt Johnston # Date 1221484000 0 # Node ID c302c7383282d287fe1f9da8acc493e67026ed44 # Parent e3db1f7a2e43401cef8121410f7b2f40c0b4e867 - Get rid of some ugly #defines diff -r e3db1f7a2e43 -r c302c7383282 svr-chansession.c --- a/svr-chansession.c Mon Sep 15 12:51:50 2008 +0000 +++ b/svr-chansession.c Mon Sep 15 13:06:40 2008 +0000 @@ -640,6 +640,9 @@ 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 @@ } /* 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)) {