#include <netat/adsp.h>
#include <netat/adsp_internal.h>
+extern int *adsp_pidM;
+
/*
* NextCID
* OUTPUTS:
* unique connection ID
*/
-unsigned short NextCID()
+
+unsigned short NextCID(void)
{
unsigned short num;
register CCB *queue;
register CCBPtr sp;
register struct adspcmd *pb;
{
- extern int adsp_pidM[];
-
int ocMode;
register gbuf_t *mp;
if (ocMode == ocEstablish) { /* For establish call, we're done */
pb->ioResult = 0;
- adspioc_ack(0, pb->ioc, pb->gref);
+ adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
return 0;
}
return ENOBUFS;
}
pb->ioResult = 1; /* not open -> not done */
- adspioc_ack(0, pb->ioc, pb->gref); /* release user */
+ adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref); /* release user */
sp->opb = (struct adspcmd *)gbuf_rptr(mp);
sp->opb->ioc = 0; /* unlink saved pb from ioctl block */
sp->opb->mp = mp;