diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:57:55 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:57:55 +0100 |
commit | 371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329 (patch) | |
tree | 661f442e4e5c61f56e72241830703267ae08e38b /threads.c | |
parent | 75bfef7fa1c9f71232a282aa66e52b2d1860100a (diff) | |
download | rsyslog-371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329.tar.gz rsyslog-371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329.tar.xz rsyslog-371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329.zip |
some cleanup based on clang static analyzer results
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -151,7 +151,6 @@ rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), rsRetVal(*afterRun)(thrdI { DEFiRet; thrdInfo_t *pThis; - int i; assert(thrdMain != NULL); @@ -159,7 +158,7 @@ rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), rsRetVal(*afterRun)(thrdI pThis->bIsActive = 1; pThis->pUsrThrdMain = thrdMain; pThis->pAfterRun = afterRun; - i = pthread_create(&pThis->thrdID, NULL, thrdStarter, pThis); + pthread_create(&pThis->thrdID, NULL, thrdStarter, pThis); CHKiRet(llAppend(&llThrds, NULL, pThis)); finalize_it: |