Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/dump.c

    r7c95d6f5 r5203e256  
    4747 * @param depth Nesting depth.
    4848 */
    49 static void dump_tree_descriptor(const uint8_t *data, size_t depth)
     49static void dump_tree_descriptor(uint8_t *data, size_t depth)
    5050{
    5151        if (data == NULL) {
    5252                return;
    5353        }
    54         const int type = data[1];
     54        int type = (int) *(data + 1);
    5555        if (type == USB_DESCTYPE_INTERFACE) {
    5656                usb_standard_interface_descriptor_t *descriptor
     
    7171 * @param depth Nesting depth.
    7272 */
    73 static void dump_tree_internal(
    74     usb_dp_parser_t *parser, usb_dp_parser_data_t *data,
    75     const uint8_t *root, size_t depth)
     73static void dump_tree_internal(usb_dp_parser_t *parser, usb_dp_parser_data_t *data,
     74    uint8_t *root, size_t depth)
    7675{
    7776        if (root == NULL) {
     
    7978        }
    8079        dump_tree_descriptor(root, depth);
    81         const uint8_t *child = usb_dp_get_nested_descriptor(parser, data, root);
     80        uint8_t *child = usb_dp_get_nested_descriptor(parser, data, root);
    8281        do {
    8382                dump_tree_internal(parser, data, child, depth + 1);
     
    9392static void dump_tree(usb_dp_parser_t *parser, usb_dp_parser_data_t *data)
    9493{
    95         const uint8_t *ptr = data->data;
     94        uint8_t *ptr = data->data;
    9695        dump_tree_internal(parser, data, ptr, 0);
    9796}
Note: See TracChangeset for help on using the changeset viewer.