Skip to content

Commit

Permalink
Minor fix for Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Feb 11, 2024
1 parent e4a3cf3 commit c931a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solaris/restartable.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ print_all(void) {
struct dirent *entry;
int *pids = NULL;
struct stat st;
int nproc;
unsigned int i, nproc;

/* Get the number of processes through st_nlink */
if (stat("/proc", &st) == -1)
Expand All @@ -144,7 +144,7 @@ print_all(void) {

qsort(pids, ++nproc, sizeof(int), compare_pids);

for (int i = 0; i < nproc; i++)
for (i = 0; i < nproc; i++)
print_proc(pids[i]);

free(pids);
Expand Down

0 comments on commit c931a93

Please sign in to comment.