From: Theodore Tso Date: Mon, 6 May 1991 11:33:31 +0000 (+0000) Subject: Changed prototypes on memcpy and memset to have an unsigned int for X-Git-Tag: krb5-1.0-alpha5~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31e268196a35e380e93060a8cf41df380f03541f;p=krb5.git Changed prototypes on memcpy and memset to have an unsigned int for the third argument. Changed return value for strlen. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2093 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/fake-stdlib.h b/src/include/fake-stdlib.h index 6b687bc90..2d42c08bc 100644 --- a/src/include/fake-stdlib.h +++ b/src/include/fake-stdlib.h @@ -260,7 +260,7 @@ int setusershell P((void )); int siginterrupt P((int , int )); int sleep P((unsigned )); int srand P((int )); -int strlen P((const char *)); +size_t strlen P((const char *)); char *strncat P((char *, const char *, int )); int strncmp P((const char *, const char *, int )); char *strncpy P((char *, const char *, int )); @@ -672,16 +672,18 @@ void qsort P((char * , unsigned , unsigned , int (* )())); #ifdef ibm032 #ifndef memcpy -extern char *memcpy P((char *, const char *, int)); +extern void *memcpy P((void *, const void *, unsigned int)); #endif #ifndef memset -extern char *memset P((char *, int, int)); +extern void *memset P((void *, int, unsigned int)); #endif extern void *calloc P((unsigned int, unsigned int)); extern void *malloc P((unsigned int)); extern void *realloc P((void *, unsigned int)); extern void free P((void *)); +#ifndef abort extern void abort P((void)); +#endif extern char *getenv P((const char *)); extern double atof P((const char *));