summaryrefslogtreecommitdiffstats
path: root/srUtils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-24 17:55:09 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-24 17:55:09 +0000
commit5c686c8adcc473cbdbb14e4b2d736f9123210ee6 (patch)
treeeb83fbca0d98ac4948b6d9ca22d8a0e4828815a9 /srUtils.c
parent76782c240db52c81825c907c40c31ca8b48218de (diff)
downloadrsyslog-5c686c8adcc473cbdbb14e4b2d736f9123210ee6.tar.gz
rsyslog-5c686c8adcc473cbdbb14e4b2d736f9123210ee6.tar.xz
rsyslog-5c686c8adcc473cbdbb14e4b2d736f9123210ee6.zip
redesigned queue to utilize helper classes for threading support. This is
finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
Diffstat (limited to 'srUtils.c')
-rwxr-xr-xsrUtils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/srUtils.c b/srUtils.c
index 35b437bd..590e7eff 100755
--- a/srUtils.c
+++ b/srUtils.c
@@ -291,7 +291,7 @@ rsRetVal genFileName(uchar **ppName, uchar *pDirName, size_t lenDirName, uchar *
*ppName = pName;
finalize_it:
- return iRet;
+ RETiRet;
}
/* get the number of digits required to represent a given number. We use an
@@ -337,8 +337,10 @@ timeoutComp(struct timespec *pt, int iTimeout)
void
mutexCancelCleanup(void *arg)
{
+ BEGINfunc
assert(arg != NULL);
d_pthread_mutex_unlock((pthread_mutex_t*) arg);
+ ENDfunc
}