• Alessandro Rubini's avatar
    shell: replace strcasecmp with strcmp · bb84ad01
    Alessandro Rubini authored
    when trying a compiler built with a newer newlib, I got a size increase
    of 2kB in wrc.elf. This is due du "smarter" strcasecmp, which is
    now localized, with wide-character support and so on.
    
    We may implement our own ascii-only strcasecmp, but avoinding case-insensitive
    comparisons we save 400 bytes, and the binary size doesn't change changing
    newlib in the compiler.
    
    Nobody is expected to use uppercase commands in the wrpc shell, and there
    is no technical need to support them, when all documentation hints to
    use lower-case anyways.
    
    Change trivially performed by
    
       sed -i s/strcasecmp/strcmp/ shell/*.c
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    bb84ad01
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
host Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
liblinux Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 0cc9d341
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
test/snmp Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
compare_size.sh Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
save_size.sh Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_main_sim.c Loading commit data...
wrs_main.c Loading commit data...