diff --git a/ScreenManager.c b/ScreenManager.c index 55cacd20a..87e718926 100644 --- a/ScreenManager.c +++ b/ScreenManager.c @@ -153,7 +153,7 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi *rescan = false; } -static inline bool drawTab(int* y, int* x, int l, const char* name, bool cur) { +static inline bool drawTab(const int* y, int* x, int l, const char* name, bool cur) { attrset(CRT_colors[cur ? SCREENS_CUR_BORDER : SCREENS_OTH_BORDER]); mvaddch(*y, *x, '['); (*x)++; diff --git a/linux/Platform.c b/linux/Platform.c index ad94381e6..911284e9b 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -64,7 +64,6 @@ in the source distribution for its full text. #include "zfs/ZfsCompressedArcMeter.h" #ifdef HAVE_LIBCAP -#include #include #endif @@ -476,7 +475,7 @@ FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid) { if (!strchr(buffer, '\n')) continue; - if (strncmp(buffer, "lock:\t", strlen("lock:\t"))) + if (!String_startsWith(buffer, "lock:\t")) continue; FileLocks_Data data = {.fd = file};