From f405b444a3ae8f9c40f00a77c53b34f54b9f8e8e Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 23 Jun 2014 16:28:19 -0400 Subject: [PATCH] errlog: nicer exit handler name --- src/libCom/error/errlog.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libCom/error/errlog.c b/src/libCom/error/errlog.c index b2714d7a9..fbad162e1 100644 --- a/src/libCom/error/errlog.c +++ b/src/libCom/error/errlog.c @@ -41,7 +41,7 @@ /*Declare storage for errVerbose */ epicsShareDef int errVerbose = 0; -static void exitHandler(void *); +static void errlogExitHandler(void *); static void errlogThread(void); static char *msgbufGetFree(int noConsoleMessage); @@ -70,8 +70,8 @@ static struct { epicsEventId waitForFlush; /*errlogFlush waits for this*/ epicsEventId flush; /*errlogFlush sets errlogThread does a Try*/ epicsMutexId flushLock; - epicsEventId waitForExit; /*exitHandler waits for this*/ - int atExit; /*TRUE when exitHandler is active*/ + epicsEventId waitForExit; /*errlogExitHandler waits for this*/ + int atExit; /*TRUE when errlogExitHandler is active*/ ELLLIST listenerList; ELLLIST msgQueue; msgNode *pnextSend; @@ -447,7 +447,7 @@ epicsShareFunc void errPrintf(long status, const char *pFileName, } -static void exitHandler(void *pvt) +static void errlogExitHandler(void *pvt) { pvtData.atExit = 1; epicsEventSignal(pvtData.waitForWork); @@ -561,7 +561,7 @@ static void errlogThread(void) int noConsoleMessage; char *pmessage; - epicsAtExit(exitHandler,0); + epicsAtExit(errlogExitHandler,0); while (TRUE) { epicsEventMustWait(pvtData.waitForWork); while ((pmessage = msgbufGetSend(&noConsoleMessage))) {