-int FillSendQueue(sp, pb) /* (CCBPtr sp) */
- register CCBPtr sp;
- register struct adspcmd *pb; /* The write PB we're playing with */
+int FillSendQueue( /* (CCBPtr sp) */
+ register CCBPtr sp,
+ register struct adspcmd *pb) /* The write PB we're playing with */
sp->sData = 1; /* note that there is data to send */
if ((mb = sp->csbuf_mb)) { /* add to the current message */
gbuf_linkb(mb, nmb);
sp->sData = 1; /* note that there is data to send */
if ((mb = sp->csbuf_mb)) { /* add to the current message */
gbuf_linkb(mb, nmb);
sp->csbuf_mb = 0; /* if its done, no current buffer */
}
pb->u.ioParams.actCount += cnt; /* Update count field in param blk */
sp->csbuf_mb = 0; /* if its done, no current buffer */
}
pb->u.ioParams.actCount += cnt; /* Update count field in param blk */
if (sp == 0) {
pb->ioResult = errRefNum;
return EINVAL; /* no stream, so drop the message */
}
if (sp == 0) {
pb->ioResult = errRefNum;
return EINVAL; /* no stream, so drop the message */
}
atalk_notify(sp->gref, ENOTCONN);
gbuf_freem(pb->mp);
return 0;
}
pb->u.ioParams.actCount = 0; /* Set # of bytes so far to zero */
atalk_notify(sp->gref, ENOTCONN);
gbuf_freem(pb->mp);
return 0;
}
pb->u.ioParams.actCount = 0; /* Set # of bytes so far to zero */