projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add remark about how to update the homepage.
[mmh]
/
uip
/
mhtest.c
diff --git
a/uip/mhtest.c
b/uip/mhtest.c
index
985147c
..
fa42cd2
100644
(file)
--- a/
uip/mhtest.c
+++ b/
uip/mhtest.c
@@
-89,9
+89,6
@@
pid_t xpid = 0;
int debugsw = 0;
int verbosw = 0;
int debugsw = 0;
int verbosw = 0;
-/* The list of top-level contents to display */
-CT *cts = NULL;
-
#define quitser pipeser
/* mhparse.c */
#define quitser pipeser
/* mhparse.c */
@@
-108,13
+105,14
@@
void flush_errors (void);
/* mhfree.c */
void free_content (CT);
/* mhfree.c */
void free_content (CT);
+extern CT *cts;
+void freects_done (int);
/*
* static prototypes
*/
static int write_content (CT *, char *);
static RETSIGTYPE pipeser (int);
/*
* static prototypes
*/
static int write_content (CT *, char *);
static RETSIGTYPE pipeser (int);
-static int freectp_done (int);
int
int
@@
-128,7
+126,7
@@
main (int argc, char **argv)
struct msgs *mp = NULL;
CT ct, *ctp;
struct msgs *mp = NULL;
CT ct, *ctp;
- done=freectp_done;
+ done=freects_done;
#ifdef LOCALE
setlocale(LC_ALL, "");
#ifdef LOCALE
setlocale(LC_ALL, "");
@@
-366,7
+364,8
@@
do_cache:
context_save (); /* save the context file */
}
context_save (); /* save the context file */
}
- return done (0);
+ done (0);
+ return 1;
}
}
@@
-398,17
+397,3
@@
pipeser (int i)
done (1);
/* NOTREACHED */
}
done (1);
/* NOTREACHED */
}
-
-
-static int
-freectp_done (int status)
-{
- CT *ctp;
-
- if ((ctp = cts))
- for (; *ctp; ctp++)
- free_content (*ctp);
-
- exit (status);
- return 1; /* dead code to satisfy the compiler */
-}