]> git.marmaro.de Git - mmh/blobdiff - uip/mhlist.c
Change link-time overriding of done() to run-time reassigning of equivalent
[mmh] / uip / mhlist.c
index 1de53e33aa29d83b541f94c95ea9f92710f0b7bb..bcc4dd2b7b83f980893d8703b1dc4ec55821d848 100644 (file)
@@ -117,6 +117,7 @@ void free_content (CT);
  * static prototypes
  */
 static RETSIGTYPE pipeser (int);
+static int freectp_done (int);
 
 
 int
@@ -131,6 +132,8 @@ main (int argc, char **argv)
     struct msgs *mp = NULL;
     CT ct, *ctp;
 
+    done=freectp_done;
+
 #ifdef LOCALE
     setlocale(LC_ALL, "");
 #endif
@@ -391,8 +394,8 @@ pipeser (int i)
 }
 
 
-int
-done (int status)
+static int
+freectp_done (int status)
 {
     CT *ctp;