summaryrefslogtreecommitdiffstats
path: root/runtime/srutils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-18 12:44:00 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-18 12:44:00 +0200
commit7b63cd6feda5087c43652bdcf8e694b544295d5b (patch)
treea51dd63c9b182a05848e35023f43d8807344113f /runtime/srutils.c
parentebc931db47bf1e28502a043dc2984acf5fd532b6 (diff)
downloadrsyslog-7b63cd6feda5087c43652bdcf8e694b544295d5b.tar.gz
rsyslog-7b63cd6feda5087c43652bdcf8e694b544295d5b.tar.xz
rsyslog-7b63cd6feda5087c43652bdcf8e694b544295d5b.zip
minor things, mostly improved debug info
Diffstat (limited to 'runtime/srutils.c')
-rw-r--r--runtime/srutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/srutils.c b/runtime/srutils.c
index 97cc3252..1280e40d 100644
--- a/runtime/srutils.c
+++ b/runtime/srutils.c
@@ -371,6 +371,7 @@ int getNumberDigits(long lNum)
rsRetVal
timeoutComp(struct timespec *pt, long iTimeout)
{
+ BEGINfunc
assert(pt != NULL);
/* compute timeout */
clock_gettime(CLOCK_REALTIME, pt);
@@ -379,6 +380,7 @@ timeoutComp(struct timespec *pt, long iTimeout)
pt->tv_nsec -= 1000000000;
}
pt->tv_sec += iTimeout / 1000;
+ ENDfunc
return RS_RET_OK; /* so far, this is static... */
}
@@ -393,6 +395,7 @@ timeoutVal(struct timespec *pt)
{
struct timespec t;
long iTimeout;
+ BEGINfunc
assert(pt != NULL);
/* compute timeout */
@@ -403,6 +406,7 @@ timeoutVal(struct timespec *pt)
if(iTimeout < 0)
iTimeout = 0;
+ ENDfunc
return iTimeout;
}