diff --git a/mytop.c b/mytop.c index c63ec7f..c88cc73 100644 --- a/mytop.c +++ b/mytop.c @@ -329,7 +329,7 @@ void mytop() { if (chdir("/proc") != 0) { perror("chdir to /proc" ); - return 1; + return; } print_memory(); getkinfo(); @@ -337,5 +337,5 @@ void mytop() if(prev_proc==NULL) get_procs(); print_procs(prev_proc,proc,1); - return 0; + return; } \ No newline at end of file