From: Pierre Joye Date: Wed, 9 Dec 2009 00:32:14 +0000 (+0000) Subject: - drop non used code and fix warning X-Git-Tag: php-5.3.2RC1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e6c08b28982cfe72642f2f93cb2345548c1a1b2;p=php - drop non used code and fix warning --- diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c index 7bc648d7fa..065721a5ef 100644 --- a/ext/standard/crypt_sha512.c +++ b/ext/standard/crypt_sha512.c @@ -39,24 +39,13 @@ # include # endif #endif -#if 0 -#ifndef stpncpy -char * stpncpy(char *dst, const char *src, size_t len) -{ - size_t n = strlen(src); - if (n > len) { - n = len; - } - return strncpy(dst, src, len) + n; -} -#endif -#ifndef mempcpy -void * mempcpy(void * dst, const void * src, size_t len) -{ - return (((char *)memcpy(dst, src, len)) + len); -} +#ifndef HAVE_MEMPCPY +extern void * mempcpy(void * dst, const void * src, size_t len); #endif + +#ifndef HAVE_STRPNCPY +extern char * stpncpy(char *dst, const char *src, size_t len); #endif #ifndef MIN