Mercurial > hg > xemacs-beta
comparison lib-src/movemail.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 4a2749e56f92 |
children | 943eaba38521 |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
140 static void error (char *, char *, char *); | 140 static void error (char *, char *, char *); |
141 static void usage(int); | 141 static void usage(int); |
142 static void pfatal_with_name (char *); | 142 static void pfatal_with_name (char *); |
143 static void pfatal_and_delete (char *); | 143 static void pfatal_and_delete (char *); |
144 static char *concat (char *, char *, char *); | 144 static char *concat (char *, char *, char *); |
145 static long *xmalloc (unsigned int); | 145 static long *xmalloc (int); |
146 #ifdef MAIL_USE_POP | 146 #ifdef MAIL_USE_POP |
147 static int popmail (char *, char *, char *); | 147 static int popmail (char *, char *, char *); |
148 static int pop_retr (popserver server, int msgno, | 148 static int pop_retr (popserver server, int msgno, |
149 int (*action)(char *, FILE *), FILE *arg); | 149 int (*action)(char *, FILE *), FILE *arg); |
150 static int mbx_write (char *, FILE *); | 150 static int mbx_write (char *, FILE *); |
438 int saved_errno = errno; | 438 int saved_errno = errno; |
439 unlink (outname); | 439 unlink (outname); |
440 errno = saved_errno; | 440 errno = saved_errno; |
441 pfatal_with_name (outname); | 441 pfatal_with_name (outname); |
442 } | 442 } |
443 if (nread < sizeof buf) | 443 if (nread < (int) sizeof (buf)) |
444 break; | 444 break; |
445 } | 445 } |
446 } | 446 } |
447 | 447 |
448 #ifdef HAVE_FSYNC | 448 #ifdef HAVE_FSYNC |
697 } | 697 } |
698 | 698 |
699 /* Like malloc but get fatal error if memory is exhausted. */ | 699 /* Like malloc but get fatal error if memory is exhausted. */ |
700 | 700 |
701 static long * | 701 static long * |
702 xmalloc (unsigned int size) | 702 xmalloc (int size) |
703 { | 703 { |
704 long *result = (long *) malloc (size); | 704 long *result = (long *) malloc (size); |
705 if (!result) | 705 if (!result) |
706 fatal ("virtual memory exhausted", 0); | 706 fatal ("virtual memory exhausted", 0); |
707 return result; | 707 return result; |