summaryrefslogtreecommitdiffstats
path: root/srUtils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-25 08:14:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-25 08:14:12 +0000
commitb7f58acb515b102547976cc02bc3fcfcef18dd0c (patch)
tree09b39f5584577e921cc9b7510b324e5365a353d8 /srUtils.c
parent965c09147c8f87e4ed6ece46b9d54e612e35cf11 (diff)
downloadrsyslog-b7f58acb515b102547976cc02bc3fcfcef18dd0c.tar.gz
rsyslog-b7f58acb515b102547976cc02bc3fcfcef18dd0c.tar.xz
rsyslog-b7f58acb515b102547976cc02bc3fcfcef18dd0c.zip
implemented data type conversion
Diffstat (limited to 'srUtils.c')
-rwxr-xr-xsrUtils.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/srUtils.c b/srUtils.c
index 652ae5c8..d20f1174 100755
--- a/srUtils.c
+++ b/srUtils.c
@@ -28,7 +28,7 @@
*/
#include "config.h"
-#include "rsyslog.h" /* THIS IS A MODIFICATION FOR RSYSLOG! 2004-11-18 rgerards */
+#include "rsyslog.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -39,7 +39,7 @@
#include <assert.h>
#include <sys/wait.h>
#include <ctype.h>
-#include "liblogging-stub.h" /* THIS IS A MODIFICATION FOR RSYSLOG! 2004-11-18 rgerards */
+#include "liblogging-stub.h"
#define TRUE 1
#define FALSE 0
#include "srUtils.h"
@@ -392,14 +392,8 @@ timeoutVal(struct timespec *pt)
assert(pt != NULL);
/* compute timeout */
clock_gettime(CLOCK_REALTIME, &t);
-//RUNLOG_VAR("%ld", pt->tv_sec);
-//RUNLOG_VAR("%ld", t.tv_sec);
-//RUNLOG_VAR("%ld", pt->tv_nsec);
-//RUNLOG_VAR("%ld", t.tv_nsec);
iTimeout = (pt->tv_nsec - t.tv_nsec) / 1000000;
-//RUNLOG_VAR("%ld", iTimeout);
iTimeout += (pt->tv_sec - t.tv_sec) * 1000;
-//RUNLOG_VAR("%ld", iTimeout);
if(iTimeout < 0)
iTimeout = 0;