]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netat/adsp_CLDeny.c
xnu-1228.0.2.tar.gz
[apple/xnu.git] / bsd / netat / adsp_CLDeny.c
index f7c045ef49157138dc9ef986a084aa2f2df0a410..3830fda0b08820c4b39b8e53df0777855303ad21 100644 (file)
@@ -88,11 +88,11 @@ int adspCLDeny(struct adspcmd *pb, CCBPtr sp)
     adspp->descriptor = ADSP_CONTROL_BIT | ADSP_CTL_ODENY;
     adspop = (ADSP_OPEN_DATAPtr)gbuf_wptr(mp);
     gbuf_winc(mp,ADSP_OPEN_FRAME_LEN);
-    UAS_ASSIGN(adspop->dstCID, pb->u.openParams.remoteCID);
-    UAS_ASSIGN(adspop->version, 0x100);
+    UAS_ASSIGN_HTON(adspop->dstCID, pb->u.openParams.remoteCID);
+    UAS_ASSIGN_HTON(adspop->version, 0x100);
     adsp_sendddp(sp, mp, 
                 DDPL_FRAME_LEN + ADSP_FRAME_LEN + ADSP_OPEN_FRAME_LEN, 
-                &pb->u.openParams.remoteAddress, DDP_ADSP);
-    adspioc_ack(0, pb->ioc, pb->gref);
+                (AddrUnion *)&pb->u.openParams.remoteAddress, DDP_ADSP);
+    adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
     return 0;
 }