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
/
pick.c
diff --git
a/uip/pick.c
b/uip/pick.c
index
dff628a
..
afbcf88
100644
(file)
--- a/
uip/pick.c
+++ b/
uip/pick.c
@@
-68,6
+68,7
@@
static struct swit switches[] = {
static int listsw = -1;
static int listsw = -1;
+static int putzero_done (int);
int
main (int argc, char **argv)
int
main (int argc, char **argv)
@@
-81,6
+82,8
@@
main (int argc, char **argv)
struct msgs *mp;
register FILE *fp;
struct msgs *mp;
register FILE *fp;
+ done=putzero_done;
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
@@
-287,8
+290,8
@@
main (int argc, char **argv)
}
}
-int
-done (int status)
+static int
+putzero_done (int status)
{
if (listsw && status && !isatty (fileno (stdout)))
printf ("0\n");
{
if (listsw && status && !isatty (fileno (stdout)))
printf ("0\n");