summaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-20 03:50:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-20 03:50:28 +0000
commit23df86474b993f98880fc5d17f2bea3e1c7494be (patch)
tree0aa05adb208b73cdbc615b09c95e338bc2560893 /usr.bin/sed
parent2db8f9da625184f46fa73c7f2810ce5fb74879dd (diff)
ansi; khalek@linuxgamers.net
Diffstat (limited to 'usr.bin/sed')
-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;