projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops, meant to use $failed (number of failed checks) as the exit code.
[mmh]
/
uip
/
mhn.c
diff --git
a/uip/mhn.c
b/uip/mhn.c
index
3f2d262
..
376fc58
100644
(file)
--- a/
uip/mhn.c
+++ b/
uip/mhn.c
@@
-157,9
+157,6
@@
extern int userrs;
int debugsw = 0;
int verbosw = 0;
int debugsw = 0;
int verbosw = 0;
-/* The list of top-level contents to display */
-CT *cts = NULL;
-
/*
* variables for mhbuild (mhn -build)
*/
/*
* variables for mhbuild (mhn -build)
*/
@@
-200,12
+197,13
@@
void cache_all_messages (CT *);
/* mhfree.c */
void free_content (CT);
/* mhfree.c */
void free_content (CT);
+extern CT *cts;
+void freects_done (int) NORETURN;
/*
* static prototypes
*/
static RETSIGTYPE pipeser (int);
/*
* static prototypes
*/
static RETSIGTYPE pipeser (int);
-static int freectp_done (int);
int
int
@@
-221,7
+219,7
@@
main (int argc, char **argv)
CT ct, *ctp;
FILE *fp;
CT ct, *ctp;
FILE *fp;
- done=freectp_done;
+ done=freects_done;
#ifdef LOCALE
setlocale(LC_ALL, "");
#ifdef LOCALE
setlocale(LC_ALL, "");
@@
-688,7
+686,8
@@
do_cache:
context_save (); /* save the context file */
}
context_save (); /* save the context file */
}
- return done (0);
+ done (0);
+ return 1;
}
}
@@
-705,17
+704,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 */
-}