diff options
| author | David J. MacKenzie | 1994-10-12 20:21:51 +0000 |
|---|---|---|
| committer | David J. MacKenzie | 1994-10-12 20:21:51 +0000 |
| commit | 340ff9deaea2a7258d3ee1eca65487b4cd8dd305 (patch) | |
| tree | 48728b1b42696e296b41072130301fc3ea627440 /lib-src/cvtmail.c | |
| parent | e2f9d9afabe51c8be7e6f4327197670b941789f2 (diff) | |
| download | emacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.tar.gz emacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.zip | |
Eliminate some -Wall warnings.
Diffstat (limited to 'lib-src/cvtmail.c')
| -rw-r--r-- | lib-src/cvtmail.c | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/lib-src/cvtmail.c b/lib-src/cvtmail.c index c1fec8792c5..b6e0c58ceb3 100644 --- a/lib-src/cvtmail.c +++ b/lib-src/cvtmail.c | |||
| @@ -36,10 +36,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 36 | 36 | ||
| 37 | char *malloc (); | 37 | char *malloc (); |
| 38 | char *realloc (); | 38 | char *realloc (); |
| 39 | char *getenv (); | ||
| 40 | |||
| 39 | char *xmalloc (); | 41 | char *xmalloc (); |
| 40 | char *xrealloc (); | 42 | char *xrealloc (); |
| 41 | char *getenv (); | 43 | void skip_to_lf (); |
| 42 | 44 | ||
| 45 | int | ||
| 43 | main (argc, argv) | 46 | main (argc, argv) |
| 44 | int argc; | 47 | int argc; |
| 45 | char *argv[]; | 48 | char *argv[]; |
| @@ -53,7 +56,7 @@ main (argc, argv) | |||
| 53 | FILE *mddf; | 56 | FILE *mddf; |
| 54 | FILE *mfilef; | 57 | FILE *mfilef; |
| 55 | FILE *cff; | 58 | FILE *cff; |
| 56 | char pre[10], post[100]; | 59 | char pre[10]; |
| 57 | char name[14]; | 60 | char name[14]; |
| 58 | int c; | 61 | int c; |
| 59 | 62 | ||
| @@ -103,6 +106,7 @@ main (argc, argv) | |||
| 103 | return 0; | 106 | return 0; |
| 104 | } | 107 | } |
| 105 | 108 | ||
| 109 | void | ||
| 106 | skip_to_lf (stream) | 110 | skip_to_lf (stream) |
| 107 | FILE *stream; | 111 | FILE *stream; |
| 108 | { | 112 | { |
| @@ -111,6 +115,26 @@ skip_to_lf (stream) | |||
| 111 | ; | 115 | ; |
| 112 | } | 116 | } |
| 113 | 117 | ||
| 118 | |||
| 119 | void | ||
| 120 | error (s1, s2) | ||
| 121 | char *s1, *s2; | ||
| 122 | { | ||
| 123 | fprintf (stderr, "cvtmail: "); | ||
| 124 | fprintf (stderr, s1, s2); | ||
| 125 | fprintf (stderr, "\n"); | ||
| 126 | } | ||
| 127 | |||
| 128 | /* Print error message and exit. */ | ||
| 129 | |||
| 130 | void | ||
| 131 | fatal (s1, s2) | ||
| 132 | char *s1, *s2; | ||
| 133 | { | ||
| 134 | error (s1, s2); | ||
| 135 | exit (1); | ||
| 136 | } | ||
| 137 | |||
| 114 | char * | 138 | char * |
| 115 | xmalloc (size) | 139 | xmalloc (size) |
| 116 | unsigned size; | 140 | unsigned size; |
| @@ -131,20 +155,3 @@ xrealloc (ptr, size) | |||
| 131 | fatal ("virtual memory exhausted"); | 155 | fatal ("virtual memory exhausted"); |
| 132 | return result; | 156 | return result; |
| 133 | } | 157 | } |
| 134 | |||
| 135 | /* Print error message and exit. */ | ||
| 136 | |||
| 137 | fatal (s1, s2) | ||
| 138 | char *s1, *s2; | ||
| 139 | { | ||
| 140 | error (s1, s2); | ||
| 141 | exit (1); | ||
| 142 | } | ||
| 143 | |||
| 144 | error (s1, s2) | ||
| 145 | char *s1, *s2; | ||
| 146 | { | ||
| 147 | fprintf (stderr, "cvtmail: "); | ||
| 148 | fprintf (stderr, s1, s2); | ||
| 149 | fprintf (stderr, "\n"); | ||
| 150 | } | ||