From 1eba2c78a2033b5e164dcf3233370b7079540e63 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 30 Apr 1991 11:22:45 +0000 Subject: [PATCH] include file changes for krb5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2062 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/posix/strdup.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/krb5/posix/strdup.c b/src/lib/krb5/posix/strdup.c index 6eb499d14..d6926d672 100644 --- a/src/lib/krb5/posix/strdup.c +++ b/src/lib/krb5/posix/strdup.c @@ -21,21 +21,19 @@ static char sccsid[] = "@(#)strdup.c 5.3 (Berkeley) 6/1/90"; #endif /* LIBC_SCCS and not lint */ -#include -#include -#include - +#include +#include char * strdup(str) - char *str; + const char *str; { int len; char *copy, *malloc(); len = strlen(str) + 1; if (!(copy = malloc((u_int)len))) - return((char *)NULL); + return((char *)0); bcopy(str, copy, len); return(copy); } -- 2.26.2