PERFORCE change 163631 for review

Andrew Thompson thompsa at FreeBSD.org
Sat Jun 6 05:36:17 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=163631

Change 163631 by thompsa at thompsa_burger on 2009/06/06 05:36:05

	Cast the pointer.

Affected files ...

.. //depot/projects/usb_buf/src/sys/dev/usb/usb_transfer.c#16 edit

Differences ...

==== //depot/projects/usb_buf/src/sys/dev/usb/usb_transfer.c#16 (text+ko) ====

@@ -320,7 +320,7 @@
 	    M_WAITOK | M_ZERO);
 	urb->ub_pipe = pipe;
 	urb->ub_buflen = bufsiz;
-	urb->local_buffer = urb + 1;
+	urb->local_buffer = (caddr_t)(urb + 1);
 
 	urb->frlengths = malloc(sizeof(usb_frlength_t) * n_frlengths,
 	    M_USB, M_WAITOK | M_ZERO);


More information about the p4-projects mailing list