Change link-time overriding of done() to run-time reassigning of equivalent
[mmh] / sbr / done.c
index 02465ea..bcc258c 100644 (file)
@@ -3,12 +3,19 @@
  * done.c -- terminate the program
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
 
-void
-done (int status)
+int (*done) (int) = default_done;
+
+int
+default_done (int status)
 {
     exit (status);
+    return 1;  /* dead code to satisfy the compiler */
 }