maint: prohibit direct use of strncmp: prefer STREQ_LEN, STRNCMP_LIT
authorJim Meyering <meyering@redhat.com>
Thu, 31 Mar 2011 15:59:16 +0000 (17:59 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 3 Apr 2011 19:55:27 +0000 (21:55 +0200)
commit03583f8d646f4cc4d5f91b7ed763c147a00e2f44
treee75e865b606e1fd762b53fa0d1240f619a4338a4
parent1c3654cb1fb0d8f3c422c766028d0783a40f4a42
maint: prohibit direct use of strncmp: prefer STREQ_LEN, STRNCMP_LIT

* cfg.mk (sc_prohibit_strncmp): New rule, mostly from libvirt.
* src/system.h (STREQ_LEN, STRPREFIX, STRNCMP_LIT): Define.
* src/df.c (get_dev, get_point): Convert.
* src/extent-scan.c (extent_need_sync): Likewise.
* src/ls.c (is_colored, decode_switches): Likewise.
(parse_ls_color, (print_color_indicator): Likewise.
* src/md5sum.c (split_3): Likewise.
* src/split.c (main, emit_ancillary_info): Likewise.
* src/tr.c (look_up_char_class): Likewise.
* src/uname.c (main): Likewise.
* src/who.c (scan_entries): Likewise.
cfg.mk
src/df.c
src/extent-scan.c
src/ls.c
src/md5sum.c
src/split.c
src/system.h
src/tr.c
src/uname.c
src/who.c