projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change link-time overriding of done() to run-time reassigning of equivalent
[mmh]
/
uip
/
mhtest.c
diff --git
a/uip/mhtest.c
b/uip/mhtest.c
index
5e6494a
..
985147c
100644
(file)
--- a/
uip/mhtest.c
+++ b/
uip/mhtest.c
@@
-114,6
+114,7
@@
void free_content (CT);
*/
static int write_content (CT *, char *);
static RETSIGTYPE pipeser (int);
*/
static int write_content (CT *, char *);
static RETSIGTYPE pipeser (int);
+static int freectp_done (int);
int
int
@@
-127,6
+128,8
@@
main (int argc, char **argv)
struct msgs *mp = NULL;
CT ct, *ctp;
struct msgs *mp = NULL;
CT ct, *ctp;
+ done=freectp_done;
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
@@
-397,8
+400,8
@@
pipeser (int i)
}
}
-int
-done (int status)
+static int
+freectp_done (int status)
{
CT *ctp;
{
CT *ctp;