From 1001f39f9f7497acb9cd36d95fb34fbd937c972c Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Wed, 22 Mar 2000 21:20:20 +0000 Subject: [PATCH] build dbPutNotifyInitiate and dbPutNotifyDestroy --- src/db/dbNotify.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/db/dbNotify.c b/src/db/dbNotify.c index 1720b5d56..d631c135f 100644 --- a/src/db/dbNotify.c +++ b/src/db/dbNotify.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "dbDefs.h" #include "osiSem.h" @@ -396,7 +397,6 @@ long dbtpn(char *pname,char *pvalue) return(0); } -#if 0 /* * dbCreatePutNotify() */ @@ -438,7 +438,7 @@ epicsShareFunc long epicsShareAPI dbPutNotifyInitiate ( if (dbStatus==S_db_Pending) { *pID = (dbPutNotifyID) ppn; } - else if (dbStatus==S_db_Blocked || status==0) { + else if (dbStatus==S_db_Blocked || dbStatus==0) { free (ppn); *pID = 0; } @@ -455,9 +455,6 @@ epicsShareFunc void epicsShareAPI dbPutNotifyDestroy (dbPutNotifyID idIn) else { PUTNOTIFY *ppn = (PUTNOTIFY *) idIn; dbNotifyCancel (ppn); - freeListFree (putNotifyFreeList, ppn) + freeListFree (putNotifyFreeList, ppn); } } - -#endif -