fix: remove atoi redundancy

This commit is contained in:
2026-08-05 13:15:06 +02:00
parent ad79702ade
commit acee61eaf2
+2 -2
View File
@@ -30,7 +30,7 @@ int *get_running_processes(int *count) {
continue;
}
strtol(entry->d_name, &endptr, 10);
long pid = strtol(entry->d_name, &endptr, 10);
if (*endptr != '\0') {
continue;
}
@@ -47,7 +47,7 @@ int *get_running_processes(int *count) {
}
processes = grown;
}
processes[(*count)++] = atoi(entry->d_name);
processes[(*count)++] = (int)pid;
}
}