Remove/fix unused stuff and other warnings

This commit is contained in:
2025-10-14 20:20:41 +02:00
parent 01b37e41c2
commit 0c3250e8d6
17 changed files with 24 additions and 55 deletions

View File

@ -32,7 +32,7 @@ void pctl_ls(void) {
char *membuf = umalloc(20);
uprintf("%-30s %s %-15s %-8s\n", "NAME", "PID", "MEMORY", "STATE");
for (size_t i = 0; i < procslen; i++) {
for (size_t i = 0; i < (size_t)procslen; i++) {
ProcStat stat; ZERO(&stat);
string_memset(namebuf, 0, 34);
@ -45,7 +45,7 @@ void pctl_ls(void) {
continue;
}
if (PCTL_LS_CONFIG.pid != -1 && stat.pid != PCTL_LS_CONFIG.pid) {
if (PCTL_LS_CONFIG.pid != -1 && stat.pid != (uint64_t)PCTL_LS_CONFIG.pid) {
continue;
}