aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-03-11 06:59:53 +0000
committerJim Blandy1993-03-11 06:59:53 +0000
commit5d13f393f9e41852fcdf144ad65ffb3c819a4b1d (patch)
tree99c1c260252e1342138ddada01175394359f383c
parent3647c1717f3d2c4db874257768edc8bee341ac4a (diff)
downloademacs-5d13f393f9e41852fcdf144ad65ffb3c819a4b1d.tar.gz
emacs-5d13f393f9e41852fcdf144ad65ffb3c819a4b1d.zip
* b2m.c (main): Don't exit upon reading a blank line.
-rw-r--r--lib-src/b2m.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index 5ae81949aed..d455de25f8e 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -36,8 +36,9 @@ int header = FALSE, printing;
36long ltoday; 36long ltoday;
37char from[256], labels[256], data[256], *p, *today; 37char from[256], labels[256], data[256], *p, *today;
38 38
39main(argc, argv) 39main (argc, argv)
40char **argv; 40 int argc;
41 char **argv;
41{ 42{
42 ltoday = time(0); 43 ltoday = time(0);
43 today = ctime(&ltoday); 44 today = ctime(&ltoday);
@@ -54,8 +55,13 @@ char **argv;
54 puts(data); 55 puts(data);
55 56
56 while (gets(data)) { 57 while (gets(data)) {
58
59#if 0
60 /* What was this for? Does somebody have something against blank
61 lines? */
57 if (!strcmp(data, "")) 62 if (!strcmp(data, ""))
58 exit(0); 63 exit(0);
64#endif
59 65
60 if (!strcmp(data, "*** EOOH ***") && !printing) { 66 if (!strcmp(data, "*** EOOH ***") && !printing) {
61 printing = header = TRUE; 67 printing = header = TRUE;