diff options
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; |