• Max Filippov's avatar
    xtensa: fix str[n]cmp return value · c5a285bb
    Max Filippov authored
    str[n]cmp functions return negative value if the first string is less
    than the second, positive value if the first string is greater than the
    second and zero if they are equal. This is important when these
    functions are used for sorting/binary search.
    
    With incorrect strcmp return value bsearch was always failing in the
    find_symbol_in_section making it impossible to load any module.
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: default avatarChris Zankel <chris@zankel.net>
    c5a285bb
string.h 2.65 KB