#include <netat/adsp.h>
#include <netat/adsp_internal.h>
+int calcSendQ(CCBPtr);
+
/*
* calcSendFree
*
return bytes;
}
+int
calcSendQ(sp)
CCBPtr sp;
{
int bytes = 0;
if (sp->sData) { /* There is data in buffer */
- if (mp = sp->sbuf_mb) {
+ if ((mp = sp->sbuf_mb)) {
do {
bytes += gbuf_msgsize(mp);
mp = gbuf_next(mp);
} while (mp);
}
- if (mp = sp->csbuf_mb)
+ if ((mp = sp->csbuf_mb))
bytes += gbuf_msgsize(mp);
}
return bytes;
CCBPtr sp;
register struct adspcmd *pb;
{
- short err;
short bytes;
if (sp == 0) {
pb->u.statusParams.recvQFree = CalcRecvWdw(sp);
pb->ioResult = 0;
- adspioc_ack(0, pb->ioc, pb->gref);
+ adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
return 0;
}