I ran clang-tidy against swayidle and it detected several problems. This PR addresses those problems.
However, clang-tidy also warns about the use of memset and sprintf and suggests to replace them with C11 functions memset_s and sprintf_s respectively. Those warnings are not addressed in this PR.
I ran clang-tidy against swayidle and it detected several problems. This PR addresses those problems.
However, clang-tidy also warns about the use of
memset
andsprintf
and suggests to replace them with C11 functionsmemset_s
andsprintf_s
respectively. Those warnings are not addressed in this PR.