projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add hints about not doing too much work in timer interrupt.
[pintos-anon]
/
src
/
examples
/
insult.c
diff --git
a/src/examples/insult.c
b/src/examples/insult.c
index 80acc6e74c7ddbbc143f9238739b13823daa7f9a..98c4e6aebae157c63794b3aaf9c2c6e5c33468b7 100644
(file)
--- a/
src/examples/insult.c
+++ b/
src/examples/insult.c
@@
-319,7
+319,7
@@
main (int argc, char *argv[])
if (handle < 0)
{
printf ("%s: open failed\n", argv[i]);
if (handle < 0)
{
printf ("%s: open failed\n", argv[i]);
- return
-1
;
+ return
EXIT_FAILURE
;
}
}
else
}
}
else
@@
-341,7
+341,7
@@
main (int argc, char *argv[])
if (file_flag)
close (handle);
if (file_flag)
close (handle);
- return
0
;
+ return
EXIT_SUCCESS
;
}
void
}
void