aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-08 17:51:52 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-08 17:51:52 +0000
commitcb236290e267f17d5f81a18d742b81f1b74b05a2 (patch)
treee6c74acdaa0881bb8accab285d77f146381b2f81 /xmalloc.c
parent7b11f0ff9972d8046e69f98948fdab26b5199caf (diff)
downloadfetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.tar.gz
fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.tar.bz2
fetchmail-cb236290e267f17d5f81a18d742b81f1b74b05a2.zip
Prototypes everywhere.
svn path=/trunk/; revision=515
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/xmalloc.c b/xmalloc.c
index a58748a4..7bdd5303 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -19,26 +19,24 @@
#endif
XMALLOCTYPE *
-xmalloc (n)
-int n;
+xmalloc (int n)
{
- XMALLOCTYPE *p;
+ XMALLOCTYPE *p;
- p = (XMALLOCTYPE *) malloc(n);
- if (p == (XMALLOCTYPE *) 0) {
- fputs("fetchmail: malloc failed\n",stderr);
- exit(PS_UNDEFINED);
- }
- return(p);
+ p = (XMALLOCTYPE *) malloc(n);
+ if (p == (XMALLOCTYPE *) 0) {
+ fputs("fetchmail: malloc failed\n",stderr);
+ exit(PS_UNDEFINED);
+ }
+ return(p);
}
-char *xstrdup(s)
-char *s;
-{
- char *p;
- p = (char *) xmalloc(strlen(s)+1);
- strcpy(p,s);
- return p;
+char *xstrdup(char *s)
+{
+ char *p;
+ p = (char *) xmalloc(strlen(s)+1);
+ strcpy(p,s);
+ return p;
}
/* xmalloc.c ends here */