aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPavel Janík2001-12-19 07:26:31 +0000
committerPavel Janík2001-12-19 07:26:31 +0000
commit594aa06631e10e4d7c7b2e8a19881f6d79365885 (patch)
tree1f53279217c7a229350a3b8c75663ff7d41c4c43 /lib-src
parent5b2b0b72d593e46253d130b06f88f303f59d6763 (diff)
downloademacs-594aa06631e10e4d7c7b2e8a19881f6d79365885.tar.gz
emacs-594aa06631e10e4d7c7b2e8a19881f6d79365885.zip
Conditionally include config.h.
Clean-up whitespaces.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog2
-rw-r--r--lib-src/fakemail.c16
2 files changed, 11 insertions, 7 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 31d929efd86..03be213e9a0 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * emacsserver.c: Conditionally include config.h. 3 * emacsserver.c: Conditionally include config.h.
4 4
5 * fakemail.c: Likewise.
6
5 * emacsclient.c: Include "config.h", not <../src/config.h>. 7 * emacsclient.c: Include "config.h", not <../src/config.h>.
6 (main): Parenthesize assignment when used as truth value to 8 (main): Parenthesize assignment when used as truth value to
7 prevent gcc warnings. 9 prevent gcc warnings.
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index 7ca3ae50d0d..dc5963c6400 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -20,7 +20,10 @@ Boston, MA 02111-1307, USA. */
20 20
21#define NO_SHORTNAMES 21#define NO_SHORTNAMES
22#define _XOPEN_SOURCE 500 /* for cuserid */ 22#define _XOPEN_SOURCE 500 /* for cuserid */
23#include <config.h> 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
24 27
25#if defined (BSD_SYSTEM) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) 28#if defined (BSD_SYSTEM) && !defined (BSD4_1) && !defined (USE_FAKEMAIL)
26/* This program isnot used in BSD, so just avoid loader complaints. */ 29/* This program isnot used in BSD, so just avoid loader complaints. */
@@ -82,7 +85,7 @@ struct header_record
82 struct header_record *previous; 85 struct header_record *previous;
83}; 86};
84typedef struct header_record *header; 87typedef struct header_record *header;
85 88
86struct stream_record 89struct stream_record
87{ 90{
88 FILE *handle; 91 FILE *handle;
@@ -203,8 +206,7 @@ init_linebuffer (linebuffer)
203} 206}
204 207
205/* Read a line of text from `stream' into `linebuffer'. 208/* Read a line of text from `stream' into `linebuffer'.
206 * Return the length of the line. 209 Return the length of the line. */
207 */
208 210
209long 211long
210readline (linebuffer, stream) 212readline (linebuffer, stream)
@@ -619,13 +621,13 @@ parse_header (the_header, where)
619 *where = '\0'; 621 *where = '\0';
620 return; 622 return;
621} 623}
622 624
623/* Read lines from the input until we get a blank line. 625/* Read lines from the input until we get a blank line.
624 Create a list of `header' objects, one for each header field, 626 Create a list of `header' objects, one for each header field,
625 each of which points to a list of `line_list' objects, 627 each of which points to a list of `line_list' objects,
626 one for each line in that field. 628 one for each line in that field.
627 Continuation lines are grouped in the headers they continue. */ 629 Continuation lines are grouped in the headers they continue. */
628 630
629header 631header
630read_header () 632read_header ()
631{ 633{
@@ -725,7 +727,7 @@ main (argc, argv)
725 command_line = alloc_string (name_length + args_size (the_header)); 727 command_line = alloc_string (name_length + args_size (the_header));
726 strcpy (command_line, mail_program_name); 728 strcpy (command_line, mail_program_name);
727 parse_header (the_header, &command_line[name_length]); 729 parse_header (the_header, &command_line[name_length]);
728 730
729 the_pipe = popen (command_line, "w"); 731 the_pipe = popen (command_line, "w");
730 if (the_pipe == ((FILE *) NULL)) 732 if (the_pipe == ((FILE *) NULL))
731 fatal ("cannot open pipe to real mailer"); 733 fatal ("cannot open pipe to real mailer");