std/filters: fix filters test harness

This commit is contained in:
Michael Davidsaver
2017-05-05 20:13:55 -04:00
parent fcd443a026
commit bbd9ba0b6d
4 changed files with 9 additions and 23 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -59,11 +59,6 @@ static chfPluginIf pif = {
static void tsInitialize(void)
{
static int firstTime = 1;
if(!firstTime) return;
firstTime = 0;
chfPluginRegister("ts", &pif, NULL);
}