Start using string_is_equal predominantly
This commit is contained in:
parent
daf0b55f80
commit
61ff51be2f
45 changed files with 204 additions and 197 deletions
|
@ -974,7 +974,7 @@ static bool frontend_unix_powerstate_check_apm(
|
|||
|
||||
if (!next_string(&ptr, &str)) /* remaining battery life time units */
|
||||
goto error;
|
||||
else if (string_is_equal_fast(str, "min", 3))
|
||||
else if (string_is_equal(str, "min"))
|
||||
battery_time *= 60;
|
||||
|
||||
if (battery_flag == 0xFF) /* unknown state */
|
||||
|
@ -1337,7 +1337,7 @@ static void frontend_unix_get_env(int *argc,
|
|||
if (android_app->getStringExtra && jstr)
|
||||
{
|
||||
const char *argv = (*env)->GetStringUTFChars(env, jstr, 0);
|
||||
bool used = string_is_equal_fast(argv, "false", 5) ? false : true;
|
||||
bool used = string_is_equal(argv, "false") ? false : true;
|
||||
|
||||
(*env)->ReleaseStringUTFChars(env, jstr, argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue