Changeset af430ce in mainline for uspace/lib/usb/src/request.c


Ignore:
Timestamp:
2011-03-02T15:01:47Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24aa62c
Parents:
37b1651d (diff), 30db06c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Various small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/request.c

    r37b1651d raf430ce  
    504504 *
    505505 * @param[in] pipe Control endpoint pipe (session must be already started).
    506  * @param[in] index String index (in native endianess).
     506 * @param[in] index String index (in native endianess),
     507 *      first index has number 1 (index from descriptors can be used directly).
    507508 * @param[in] lang String language (in native endianess).
    508509 * @param[out] string_ptr Where to store allocated string in native encoding.
     
    515516                return EBADMEM;
    516517        }
    517         /* Index is actually one byte value. */
    518         if (index > 0xFF) {
     518        /*
     519         * Index is actually one byte value and zero index is used
     520         * to retrieve list of supported languages.
     521         */
     522        if ((index < 1) || (index > 0xFF)) {
    519523                return ERANGE;
    520524        }
Note: See TracChangeset for help on using the changeset viewer.