This commit is contained in:
Kelly Schultz 2026-07-13 16:35:36 +00:00 committed by GitHub
commit bf8c86cd2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -545,6 +545,8 @@ int daemonize(bool do_commands) {
break;
}
}
return 0;
}
} // namespace control_tools

View File

@ -141,7 +141,7 @@ static uint64_t trailing_num_score(uint64_t num, size_t numlen,
static int keyboard_buddies(int ch1, int ch2) {
static const char *kb = "qwertyuiop[]asdfghjkl;'\\zxcvbnm,./"
"QWERTYUIOP{}ASDFGHJKL:\"|ZXCVBNM<>?~!@#$%^&*()_+";
char *f;
const char *f;
f = strchr(kb, ch1);
return f && (f[1] == ch2 || (f > kb && *(f - 1) == ch2));
}