projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed #include of signal.h because it's in h/signals.h.
[mmh]
/
uip
/
pick.c
diff --git
a/uip/pick.c
b/uip/pick.c
index
6c59add
..
d31f9b8
100644
(file)
--- a/
uip/pick.c
+++ b/
uip/pick.c
@@
-76,7
+76,7
@@
static int pmatches(FILE *, int, long, long);
static int listsw = -1;
static int listsw = -1;
-static void putzero_done();
+void putzero_done();
int
main(int argc, char **argv)
int
main(int argc, char **argv)
@@
-91,7
+91,9
@@
main(int argc, char **argv)
struct msgs *mp;
register FILE *fp;
struct msgs *mp;
register FILE *fp;
- atexit(putzero_done);
+ if (atexit(putzero_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
@@
-307,7
+309,7
@@
main(int argc, char **argv)
}
}
-static void
+void
putzero_done()
{
if (listsw && !isatty(fileno(stdout)))
putzero_done()
{
if (listsw && !isatty(fileno(stdout)))