summaryrefslogtreecommitdiffstats
path: root/linkedlist.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 /linkedlist.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 'linkedlist.c')
-rw-r--r--linkedlist.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/linkedlist.c b/linkedlist.c
index ff1320e5..9adf40c4 100644
--- a/linkedlist.c
+++ b/linkedlist.c
@@ -79,7 +79,7 @@ static rsRetVal llDestroyElt(linkedList_t *pList, llElt_t *pElt)
free(pElt);
pList->iNumElts--; /* one less */
- return iRet;
+ RETiRet;
}
@@ -106,7 +106,7 @@ rsRetVal llDestroy(linkedList_t *pThis)
pThis->pRoot = NULL;
pThis->pLast = NULL;
- return iRet;
+ RETiRet;
}
/* llDestroyRootElt - destroy the root element but otherwise
@@ -134,7 +134,7 @@ rsRetVal llDestroyRootElt(linkedList_t *pThis)
CHKiRet(llDestroyElt(pThis, pPrev));
finalize_it:
- return iRet;
+ RETiRet;
}
@@ -166,7 +166,7 @@ rsRetVal llGetNextElt(linkedList_t *pThis, linkedListCookie_t *ppElt, void **ppU
*ppElt = pElt;
- return iRet;
+ RETiRet;
}
@@ -204,7 +204,7 @@ static rsRetVal llEltConstruct(llElt_t **ppThis, void *pKey, void *pData)
finalize_it:
*ppThis = pThis;
- return iRet;
+ RETiRet;
}
@@ -227,7 +227,7 @@ rsRetVal llAppend(linkedList_t *pThis, void *pKey, void *pData)
pThis->pLast = pElt;
finalize_it:
- return iRet;
+ RETiRet;
}
@@ -267,7 +267,7 @@ static rsRetVal llUnlinkAndDelteElt(linkedList_t *pThis, llElt_t *pElt, llElt_t
CHKiRet(llDestroyElt(pThis, pElt));
finalize_it:
- return iRet;
+ RETiRet;
}
/* find a user element based on the provided key - this is the
@@ -305,7 +305,7 @@ static rsRetVal llFindElt(linkedList_t *pThis, void *pKey, llElt_t **ppElt, llEl
} else
iRet = RS_RET_NOT_FOUND;
- return iRet;
+ RETiRet;
}
@@ -323,7 +323,7 @@ rsRetVal llFind(linkedList_t *pThis, void *pKey, void **ppData)
*ppData = pElt->pData;
finalize_it:
- return iRet;
+ RETiRet;
}
@@ -345,7 +345,7 @@ rsRetVal llFindAndDelete(linkedList_t *pThis, void *pKey)
CHKiRet(llUnlinkAndDelteElt(pThis, pElt, pEltPrev));
finalize_it:
- return iRet;
+ RETiRet;
}
@@ -360,7 +360,7 @@ rsRetVal llGetNumElts(linkedList_t *pThis, int *piCnt)
*piCnt = pThis->iNumElts;
- return iRet;
+ RETiRet;
}
@@ -404,7 +404,7 @@ rsRetVal llExecFunc(linkedList_t *pThis, rsRetVal (*pFunc)(void*, void*), void*
iRet = iRetLL;
finalize_it:
- return iRet;
+ RETiRet;
}