diff --git a/control_tools.cpp b/control_tools.cpp index 7a8aec0..4eef994 100644 --- a/control_tools.cpp +++ b/control_tools.cpp @@ -545,6 +545,8 @@ int daemonize(bool do_commands) { break; } } + + return 0; } } // namespace control_tools diff --git a/pclsync/ppassword.c b/pclsync/ppassword.c index 48ff58e..a82c0be 100644 --- a/pclsync/ppassword.c +++ b/pclsync/ppassword.c @@ -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)); }