eliminate some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1879 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ec5c6381d8
commit
2d9e8251ca
@ -1078,7 +1078,7 @@ static int lpc214x_wrrequest(struct lpc214x_ep_s *privep)
|
|||||||
|
|
||||||
/* Send the largest number of bytes that we can in this packet */
|
/* Send the largest number of bytes that we can in this packet */
|
||||||
|
|
||||||
buf = privreq->req.buf + privreq->req.xfrd;
|
buf = (ubyte*)privreq->req.buf + privreq->req.xfrd;
|
||||||
lpc214x_epwrite(privep->epphy, buf, nbytes);
|
lpc214x_epwrite(privep->epphy, buf, nbytes);
|
||||||
|
|
||||||
/* Update for the next time through the loop */
|
/* Update for the next time through the loop */
|
||||||
@ -1139,7 +1139,7 @@ static int lpc214x_rdrequest(struct lpc214x_ep_s *privep)
|
|||||||
|
|
||||||
/* Receive the next packet */
|
/* Receive the next packet */
|
||||||
|
|
||||||
buf = privreq->req.buf + privreq->req.xfrd;
|
buf = (ubyte*)privreq->req.buf + privreq->req.xfrd;
|
||||||
nbytesread = lpc214x_epread(privep->epphy, buf, privep->ep.maxpacket);
|
nbytesread = lpc214x_epread(privep->epphy, buf, privep->ep.maxpacket);
|
||||||
if (nbytesread < 0)
|
if (nbytesread < 0)
|
||||||
{
|
{
|
||||||
|
@ -1665,7 +1665,7 @@ static int usbstrg_cmdparsestate(FAR struct usbstrg_dev_s *priv)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
DEBUGASSERT(privreq->req && privreq->req->buf);
|
DEBUGASSERT(privreq->req && privreq->req->buf);
|
||||||
buf = privreq->req->buf;
|
buf = (ubyte*)privreq->req->buf;
|
||||||
|
|
||||||
/* Assume that no errors will be encountered */
|
/* Assume that no errors will be encountered */
|
||||||
|
|
||||||
@ -2018,7 +2018,7 @@ static int usbstrg_cmdreadstate(FAR struct usbstrg_dev_s *priv)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
src = &priv->iobuffer[lun->sectorsize - priv->nsectbytes];
|
src = &priv->iobuffer[lun->sectorsize - priv->nsectbytes];
|
||||||
dest = &req->buf[priv->nreqbytes];
|
dest = (ubyte*)&req->buf[priv->nreqbytes];
|
||||||
|
|
||||||
nbytes = min(CONFIG_USBSTRG_BULKINREQLEN - priv->nreqbytes, priv->nsectbytes);
|
nbytes = min(CONFIG_USBSTRG_BULKINREQLEN - priv->nreqbytes, priv->nsectbytes);
|
||||||
|
|
||||||
@ -2150,7 +2150,7 @@ static int usbstrg_cmdwritestate(FAR struct usbstrg_dev_s *priv)
|
|||||||
{
|
{
|
||||||
/* Copy the data received in the read request into the sector I/O buffer */
|
/* Copy the data received in the read request into the sector I/O buffer */
|
||||||
|
|
||||||
src = &req->buf[xfrd - priv->nreqbytes];
|
src = (ubyte*)&req->buf[xfrd - priv->nreqbytes];
|
||||||
dest = &priv->iobuffer[priv->nsectbytes];
|
dest = &priv->iobuffer[priv->nsectbytes];
|
||||||
|
|
||||||
nbytes = min(lun->sectorsize - priv->nsectbytes, priv->nreqbytes);
|
nbytes = min(lun->sectorsize - priv->nsectbytes, priv->nreqbytes);
|
||||||
|
@ -800,9 +800,9 @@ static int usbstrg_setup(FAR struct usbdev_s *dev, const struct usb_ctrlreq_s *c
|
|||||||
case USB_DESC_TYPE_CONFIG:
|
case USB_DESC_TYPE_CONFIG:
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USBDEV_DUALSPEED
|
#ifdef CONFIG_USBDEV_DUALSPEED
|
||||||
ret = usbstrg_mkcfgdesc(ctrlreq->buf, dev->speed, len);
|
ret = usbstrg_mkcfgdesc((ubyte*)ctrlreq->buf, dev->speed, len);
|
||||||
#else
|
#else
|
||||||
ret = usbstrg_mkcfgdesc(ctrlreq->buf);
|
ret = usbstrg_mkcfgdesc((ubyte*)ctrlreq->buf);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user