Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142236788
D27581.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
D27581.diff
View Options
Index: head/sys/dev/usb/usb_core.h
===================================================================
--- head/sys/dev/usb/usb_core.h
+++ head/sys/dev/usb/usb_core.h
@@ -58,11 +58,11 @@
/* helper for converting pointers to integers */
#define USB_P2U(ptr) \
- (((const uint8_t *)(ptr)) - ((const uint8_t *)0))
+ ((uintptr_t)(ptr))
/* helper for computing offsets */
#define USB_ADD_BYTES(ptr,size) \
- ((void *)(USB_P2U(ptr) + (size)))
+ ((void *)(__DECONST(char *, (ptr)) + (size)))
/* debug macro */
#define USB_ASSERT KASSERT
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 18, 4:14 PM (16 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27711653
Default Alt Text
D27581.diff (546 B)
Attached To
Mode
D27581: Use more standard types for manipulating pointers.
Attached
Detach File
Event Timeline
Log In to Comment