diff options
| author | deraadt <> | 2003-06-11 21:08:16 +0000 |
|---|---|---|
| committer | deraadt <> | 2003-06-11 21:08:16 +0000 |
| commit | 05ebc6b11cf74e0e9e901f2e1c26d0d682c57842 (patch) | |
| tree | 0ab503c1cf313bdf01aa32f8ffd0938a3d19c2a9 /src/lib/libc/string/strdup.c | |
| parent | 9b3b34e9713b6e433e3bb19fc1808375d5c69917 (diff) | |
| download | openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.tar.gz openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.tar.bz2 openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.zip | |
ansification; pval ok
Diffstat (limited to 'src/lib/libc/string/strdup.c')
| -rw-r--r-- | src/lib/libc/string/strdup.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 @@ | |||
| 1 | /* $OpenBSD: strdup.c,v 1.4 2003/06/02 20:18:38 millert Exp $ */ | 1 | /* $OpenBSD: strdup.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1988, 1993 | 4 | * Copyright (c) 1988, 1993 |
| @@ -33,7 +33,7 @@ | |||
| 33 | #if 0 | 33 | #if 0 |
| 34 | static char sccsid[] = "@(#)strdup.c 8.1 (Berkeley) 6/4/93"; | 34 | static char sccsid[] = "@(#)strdup.c 8.1 (Berkeley) 6/4/93"; |
| 35 | #else | 35 | #else |
| 36 | static char *rcsid = "$OpenBSD: strdup.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; | 36 | static char *rcsid = "$OpenBSD: strdup.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; |
| 37 | #endif | 37 | #endif |
| 38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
| 39 | 39 | ||
| @@ -44,8 +44,7 @@ static char *rcsid = "$OpenBSD: strdup.c,v 1.4 2003/06/02 20:18:38 millert Exp $ | |||
| 44 | #include <string.h> | 44 | #include <string.h> |
| 45 | 45 | ||
| 46 | char * | 46 | char * |
| 47 | strdup(str) | 47 | strdup(const char *str) |
| 48 | const char *str; | ||
| 49 | { | 48 | { |
| 50 | size_t siz; | 49 | size_t siz; |
| 51 | char *copy; | 50 | char *copy; |
