std/filters: fix filters test harness
This commit is contained in:
@@ -215,16 +215,13 @@ static chfPluginIf pif = {
|
||||
|
||||
static void arrShutdown(void* ignore)
|
||||
{
|
||||
freeListCleanup(myStructFreeList);
|
||||
if(myStructFreeList)
|
||||
freeListCleanup(myStructFreeList);
|
||||
myStructFreeList = NULL;
|
||||
}
|
||||
|
||||
static void arrInitialize(void)
|
||||
{
|
||||
static int firstTime = 1;
|
||||
|
||||
if (!firstTime) return;
|
||||
firstTime = 0;
|
||||
|
||||
if (!myStructFreeList)
|
||||
freeListInitPvt(&myStructFreeList, sizeof(myStruct), 64);
|
||||
|
||||
|
||||
@@ -124,16 +124,13 @@ static chfPluginIf pif = {
|
||||
|
||||
static void dbndShutdown(void* ignore)
|
||||
{
|
||||
freeListCleanup(myStructFreeList);
|
||||
if(myStructFreeList)
|
||||
freeListCleanup(myStructFreeList);
|
||||
myStructFreeList = NULL;
|
||||
}
|
||||
|
||||
static void dbndInitialize(void)
|
||||
{
|
||||
static int firstTime = 1;
|
||||
|
||||
if (!firstTime) return;
|
||||
firstTime = 0;
|
||||
|
||||
if (!myStructFreeList)
|
||||
freeListInitPvt(&myStructFreeList, sizeof(myStruct), 64);
|
||||
|
||||
|
||||
@@ -177,16 +177,13 @@ static chfPluginIf pif = {
|
||||
|
||||
static void syncShutdown(void* ignore)
|
||||
{
|
||||
freeListCleanup(myStructFreeList);
|
||||
if(myStructFreeList)
|
||||
freeListCleanup(myStructFreeList);
|
||||
myStructFreeList = NULL;
|
||||
}
|
||||
|
||||
static void syncInitialize(void)
|
||||
{
|
||||
static int firstTime = 1;
|
||||
|
||||
if (!firstTime) return;
|
||||
firstTime = 0;
|
||||
|
||||
if (!myStructFreeList)
|
||||
freeListInitPvt(&myStructFreeList, sizeof(myStruct), 64);
|
||||
|
||||
|
||||
@@ -59,11 +59,6 @@ static chfPluginIf pif = {
|
||||
|
||||
static void tsInitialize(void)
|
||||
{
|
||||
static int firstTime = 1;
|
||||
|
||||
if(!firstTime) return;
|
||||
firstTime = 0;
|
||||
|
||||
chfPluginRegister("ts", &pif, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user