Commit 7d87e5a0 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Error.c: use standard file descriptor macros

parent 654422a0
...@@ -283,12 +283,12 @@ void nxagentStartRedirectToClientsLog(void) ...@@ -283,12 +283,12 @@ void nxagentStartRedirectToClientsLog(void)
{ {
if (nxagentStderrBackup == -1) if (nxagentStderrBackup == -1)
{ {
nxagentStderrBackup = dup(2); nxagentStderrBackup = dup(STDERR_FILENO);
} }
if (nxagentStderrBackup != -1) if (nxagentStderrBackup != -1)
{ {
nxagentStderrDup = dup2(nxagentClientsLog, 2); nxagentStderrDup = dup2(nxagentClientsLog, STDERR_FILENO);
if (nxagentStderrDup == -1) if (nxagentStderrDup == -1)
{ {
...@@ -308,7 +308,7 @@ void nxagentEndRedirectToClientsLog(void) ...@@ -308,7 +308,7 @@ void nxagentEndRedirectToClientsLog(void)
{ {
if (nxagentStderrBackup != -1) if (nxagentStderrBackup != -1)
{ {
nxagentStderrDup = dup2(nxagentStderrBackup, 2); nxagentStderrDup = dup2(nxagentStderrBackup, STDERR_FILENO);
if (nxagentStderrDup == -1) if (nxagentStderrDup == -1)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment