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
/
mhshow.c
diff --git
a/uip/mhshow.c
b/uip/mhshow.c
index
3e7e3a5
..
4755171
100644
(file)
--- a/
uip/mhshow.c
+++ b/
uip/mhshow.c
@@
-133,6
+133,7
@@
void free_content (CT);
* static prototypes
*/
static RETSIGTYPE pipeser (int);
* static prototypes
*/
static RETSIGTYPE pipeser (int);
+static int freectp_done (int);
int
int
@@
-147,6
+148,8
@@
main (int argc, char **argv)
CT ct, *ctp;
FILE *fp;
CT ct, *ctp;
FILE *fp;
+ done=freectp_done;
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
@@
-471,8
+474,8
@@
pipeser (int i)
}
}
-int
-done (int status)
+static int
+freectp_done (int status)
{
CT *ctp;
{
CT *ctp;