include file changes for krb5
authorJohn Kohl <jtkohl@mit.edu>
Tue, 30 Apr 1991 11:22:45 +0000 (11:22 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 30 Apr 1991 11:22:45 +0000 (11:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2062 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/posix/strdup.c

index 6eb499d14f327c00a6551bc0222534d42054bc31..d6926d6727282a002310e16660e846c5d4e014b9 100644 (file)
 static char sccsid[] = "@(#)strdup.c   5.3 (Berkeley) 6/1/90";
 #endif /* LIBC_SCCS and not lint */
 
-#include <sys/types.h>
-#include <stddef.h>
-#include <string.h>
-
+#include <krb5/krb5.h>
+#include <krb5/ext-proto.h>
 
 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);
 }