Changeset 1cf26ab in mainline for uspace/lib/usbdev/src


Ignore:
Timestamp:
2016-05-14T06:44:37Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
362654a
Parents:
1023758
Message:

Use static assert instead of regular ones

Location:
uspace/lib/usbdev/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/pipesinit.c

    r1023758 r1cf26ab  
    340340{
    341341        assert(pipe);
    342         assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE);
     342        static_assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE);
    343343
    344344        if ((pipe->direction != USB_DIRECTION_BOTH) ||
  • uspace/lib/usbdev/src/request.c

    r1023758 r1cf26ab  
    3939
    4040#define MAX_DATA_LENGTH ((size_t)(0xFFFF))
     41
     42static_assert(sizeof(usb_device_request_setup_packet_t) == 8);
    4143
    4244/** Generic wrapper for SET requests using standard control request format.
Note: See TracChangeset for help on using the changeset viewer.