=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/misc.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/sed/misc.c 2003/06/03 02:56:16 1.5 +++ src/usr.bin/sed/misc.c 2004/07/20 03:50:26 1.6 @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.5 2003/06/03 02:56:16 millert Exp $ */ +/* $OpenBSD: misc.c,v 1.6 2004/07/20 03:50:26 deraadt Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -35,7 +35,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; */ -static char *rcsid = "$OpenBSD: misc.c,v 1.5 2003/06/03 02:56:16 millert Exp $"; +static char *rcsid = "$OpenBSD: misc.c,v 1.6 2004/07/20 03:50:26 deraadt Exp $"; #endif /* not lint */ #include @@ -54,8 +54,7 @@ * malloc with result test */ void * -xmalloc(size) - u_int size; +xmalloc(u_int size) { void *p; @@ -68,9 +67,7 @@ * realloc with result test */ void * -xrealloc(p, size) - void *p; - u_int size; +xrealloc(void *p, u_int size) { if (p == NULL) /* Compatibility hack. */ return (xmalloc(size)); @@ -86,9 +83,7 @@ * the buffer). */ char * -strregerror(errcode, preg) - int errcode; - regex_t *preg; +strregerror(int errcode, regex_t *preg) { static char *oe; size_t s;