Remove lock check from command add to separate function.

r1733 | dcl | 2007-03-28 12:28:17 +1000 (Wed, 28 Mar 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-03-28 12:28:17 +10:00
parent d738cb36b0
commit 0c48ec780a

15
costa.c
View File

@@ -112,13 +112,6 @@
assert(self); assert(self);
/* check for lock */
#if 0 /* DFC */
if(self->iLock)
{
return 0;
}
#endif
/* check Size */ /* check Size */
if(self->iCount >= self->iMaxSize) if(self->iCount >= self->iMaxSize)
{ {
@@ -147,14 +140,6 @@
int iRet, iRes = 1; int iRet, iRes = 1;
assert(self); assert(self);
/* check for lock */
#if 0 /* DFC */
if(self->iLock)
{
return 0;
}
#endif
/* do not want 0 commands */ /* do not want 0 commands */
if(strlen(pCommand) < 1) if(strlen(pCommand) < 1)
{ {