projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement a proper block layer with partition support.
[pintos-anon]
/
src
/
tests
/
userprog
/
multi-recurse.c
diff --git
a/src/tests/userprog/multi-recurse.c
b/src/tests/userprog/multi-recurse.c
index 7786831da87dda144af819ff68111296eb704ee3..7172ec3cb6ce83c7df082c483cbaa9545f57e8f9 100644
(file)
--- a/
src/tests/userprog/multi-recurse.c
+++ b/
src/tests/userprog/multi-recurse.c
@@
-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>
#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]);
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)
msg ("begin %d", n);
if (n != 0)