From 82c2182887ed3be9ff6b59f368597b65e5ef13df Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 12 Jul 2017 21:49:28 +0200 Subject: nxcomp/src/Loop.cpp: Don't use global variables as function paramters in handleLogReopenInLoop(). --- nxcomp/src/Loop.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nxcomp/src') diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp index 6c1ba2c40..8538036e2 100644 --- a/nxcomp/src/Loop.cpp +++ b/nxcomp/src/Loop.cpp @@ -711,7 +711,7 @@ static inline void handleTerminatedInLoop(); // Monitor the size of the log file. // -static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs); +static void handleLogReopenInLoop(T_timestamp &lTs, T_timestamp &nTs); // // Directory where the NX binaries and libraries reside. @@ -16482,7 +16482,7 @@ static inline void handleEventsInLoop() } } -static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs) +static void handleLogReopenInLoop(T_timestamp &lTs, T_timestamp &nTs) { // // If need to limit the size of the @@ -16492,7 +16492,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs) #ifndef QUOTA - if (diffTimestamp(logsTs, nowTs) > control -> FileSizeCheckTimeout) + if (diffTimestamp(lTs, nTs) > control -> FileSizeCheckTimeout) #endif { @@ -16514,7 +16514,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs) // Reset to current timestamp. // - logsTs = nowTs; + lTs = nTs; } } -- cgit v1.2.3