diff options
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. */ char *malloc (); char *realloc (); +char *getenv (); + char *xmalloc (); char *xrealloc (); -char *getenv (); +void skip_to_lf (); +int main (argc, argv) int argc; char *argv[]; @@ -53,7 +56,7 @@ main (argc, argv) FILE *mddf; FILE *mfilef; FILE *cff; - char pre[10], post[100]; + char pre[10]; char name[14]; int c; @@ -103,6 +106,7 @@ main (argc, argv) return 0; } +void skip_to_lf (stream) FILE *stream; { @@ -111,6 +115,26 @@ skip_to_lf (stream) ; } + +void +error (s1, s2) + char *s1, *s2; +{ + fprintf (stderr, "cvtmail: "); + fprintf (stderr, s1, s2); + fprintf (stderr, "\n"); +} + +/* Print error message and exit. */ + +void +fatal (s1, s2) + char *s1, *s2; +{ + error (s1, s2); + exit (1); +} + char * xmalloc (size) unsigned size; @@ -131,20 +155,3 @@ xrealloc (ptr, size) fatal ("virtual memory exhausted"); return result; } - -/* Print error message and exit. */ - -fatal (s1, s2) - char *s1, *s2; -{ - error (s1, s2); - exit (1); -} - -error (s1, s2) - char *s1, *s2; -{ - fprintf (stderr, "cvtmail: "); - fprintf (stderr, s1, s2); - fprintf (stderr, "\n"); -} |