Add explanatory comments to userprog tests.
[pintos-anon] / src / tests / userprog / multi-recurse.c
index 7786831da87dda144af819ff68111296eb704ee3..7172ec3cb6ce83c7df082c483cbaa9545f57e8f9 100644 (file)
@@ -1,3 +1,6 @@
+/* Executes itself recursively to the depth indicated by the
+   first command-line argument. */
+
 #include <debug.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -10,8 +13,6 @@ int
 main (int argc UNUSED, char *argv[]) 
 {
   int n = atoi (argv[1]);
-  if (n == 0)
-    n = atoi (argv[0]);
 
   msg ("begin %d", n);
   if (n != 0)