summaryrefslogtreecommitdiff
path: root/usr.bin/sed/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sed/misc.c')
-rw-r--r--usr.bin/sed/misc.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.bin/sed/misc.c b/usr.bin/sed/misc.c
index 2d8a82af432..18fee03a552 100644
--- a/usr.bin/sed/misc.c
+++ b/usr.bin/sed/misc.c
@@ -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 <sys/types.h>
@@ -54,8 +54,7 @@ static char *rcsid = "$OpenBSD: misc.c,v 1.5 2003/06/03 02:56:16 millert Exp $";
* malloc with result test
*/
void *
-xmalloc(size)
- u_int size;
+xmalloc(u_int size)
{
void *p;
@@ -68,9 +67,7 @@ xmalloc(size)
* 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 @@ xrealloc(p, size)
* the buffer).
*/
char *
-strregerror(errcode, preg)
- int errcode;
- regex_t *preg;
+strregerror(int errcode, regex_t *preg)
{
static char *oe;
size_t s;