X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/89b3af67bb32e691275bf6fa803d1834b2284115..e2fac8b15b12a7979f72090454d850e612fc5b13:/bsd/netat/adsp_Status.c diff --git a/bsd/netat/adsp_Status.c b/bsd/netat/adsp_Status.c index 505dd746c..4643504b9 100644 --- a/bsd/netat/adsp_Status.c +++ b/bsd/netat/adsp_Status.c @@ -51,6 +51,8 @@ #include #include +int calcSendQ(CCBPtr); + /* * calcSendFree * @@ -72,6 +74,7 @@ int CalcSendQFree(sp) /* (CCBPtr sp) */ return bytes; } +int calcSendQ(sp) CCBPtr sp; { @@ -79,13 +82,13 @@ calcSendQ(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; @@ -112,7 +115,6 @@ int adspStatus(sp, pb) /* (DSPPBPtr pb) */ CCBPtr sp; register struct adspcmd *pb; { - short err; short bytes; if (sp == 0) { @@ -147,7 +149,7 @@ int adspStatus(sp, pb) /* (DSPPBPtr pb) */ 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; }