diff --git a/src/queueRem.c b/src/queueRem.c index d526b51..d35b2cf 100644 --- a/src/queueRem.c +++ b/src/queueRem.c @@ -6,7 +6,7 @@ int msgQueueRem(msgQueue * queue, msgQueueElemId oldElemId){ msgQueueElem * queueOldHeadElem; - if (strcmp(queue->headId,queue->tailId)==0){ + if (strcmp(queue->headId,queue->id)==0){ NZG_ERROR("msgQueueElemRem : Empty queue",queue->id); goto ERROR; } diff --git a/test/put_get.c b/test/put_get.c index 2c17c6d..fb1aa94 100644 --- a/test/put_get.c +++ b/test/put_get.c @@ -39,5 +39,6 @@ int main(void) { printf("Get..."); fflush(stdout); montext=msgGet(mSPAC,0,0); printf("get-ok\n"); + printf("### test Reception %d ###\n",(int)*montext); return 0; }