]> git.sur5r.net Git - i3/i3status/commit
Unify use of string comparisons
authorMats <d912e3@gmail.com>
Tue, 11 Mar 2014 19:15:36 +0000 (20:15 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 12 Mar 2014 07:28:16 +0000 (08:28 +0100)
commit4f7da73885934a052425fc71861b0c9922c2122f
treef3872ee680309fa8955318f4d3a586cb08846a9d
parent52814295a0b3a0785631256e9e2dc6b8139e2be8
Unify use of string comparisons

* strncmp(s1, s2, strlen(s2)) → BEGINS_WITH(s1, s2)
* strncmp(s1, s2, strlen(s1)) → strcmp(s1, s2)
* Prefer case-insensitive comparison for options
src/print_battery_info.c
src/print_cpu_temperature.c
src/print_cpu_usage.c
src/print_disk_info.c
src/print_eth_info.c
src/print_ipv6_addr.c
src/print_path_exists.c
src/print_run_watch.c