From cb236290e267f17d5f81a18d742b81f1b74b05a2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 8 Nov 1996 17:51:52 +0000 Subject: Prototypes everywhere. svn path=/trunk/; revision=515 --- xmalloc.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'xmalloc.c') 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 */ -- cgit v1.2.3