Remove/fix unused stuff and other warnings
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user