From 05ebc6b11cf74e0e9e901f2e1c26d0d682c57842 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 11 Jun 2003 21:08:16 +0000 Subject: ansification; pval ok --- src/lib/libc/string/strdup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lib/libc/string/strdup.c') diff --git a/src/lib/libc/string/strdup.c b/src/lib/libc/string/strdup.c index 0d2e30a547..bbea59888c 100644 --- a/src/lib/libc/string/strdup.c +++ b/src/lib/libc/string/strdup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strdup.c,v 1.4 2003/06/02 20:18:38 millert Exp $ */ +/* $OpenBSD: strdup.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $ */ /* * Copyright (c) 1988, 1993 @@ -33,7 +33,7 @@ #if 0 static char sccsid[] = "@(#)strdup.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: strdup.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; +static char *rcsid = "$OpenBSD: strdup.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -44,8 +44,7 @@ static char *rcsid = "$OpenBSD: strdup.c,v 1.4 2003/06/02 20:18:38 millert Exp $ #include char * -strdup(str) - const char *str; +strdup(const char *str) { size_t siz; char *copy; -- cgit v1.2.3-55-g6feb