projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3897a2
)
Changed from returning void to returning int so that main()s who call done() at
author
Dan Harkless
<dan@harkless.org>
Fri, 16 Jul 1999 00:48:59 +0000
(
00:48
+0000)
committer
Dan Harkless
<dan@harkless.org>
Fri, 16 Jul 1999 00:48:59 +0000
(
00:48
+0000)
the end can instead return done() at the end to eliminate the compilation
warning about falling off the end of a non-void function.
sbr/done.c
patch
|
blob
|
history
diff --git
a/sbr/done.c
b/sbr/done.c
index
02465ea
..
b5072a6
100644
(file)
--- a/
sbr/done.c
+++ b/
sbr/done.c
@@
-7,8
+7,9
@@
#include <h/mh.h>
-void
+int
done (int status)
{
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}