Changeset 732bb0c in mainline for uspace/lib/libc/generic/getopt.c


Ignore:
Timestamp:
2009-04-14T19:08:10Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4482bc7
Parents:
47a6708
Message:

Nuke strncmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/getopt.c

    r47a6708 r732bb0c  
    387387                for (i = 0; long_options[i].name; i++) {
    388388                        /* find matching long option */
    389                         if (strncmp(current_argv, long_options[i].name,
    390                             current_argv_len))
     389                        if (str_lcmp(current_argv, long_options[i].name,
     390                            str_nlength(current_argv, current_argv_len)))
    391391                                continue;
    392392
Note: See TracChangeset for help on using the changeset viewer.