mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Protect strdup/memcmp from macro subsitution. Let compiler pick registers.
This commit is contained in:
parent
3474bbaed5
commit
6d2f28c080
@ -6,10 +6,10 @@
|
||||
* Memory Compare
|
||||
*/
|
||||
int
|
||||
memcmp(const void *v1, const void *v2, int n)
|
||||
(memcmp)(const void *v1, const void *v2, int n)
|
||||
{
|
||||
if (n != 0) {
|
||||
register const unsigned char *s1=v1, *s2=v2;
|
||||
const unsigned char *s1=v1, *s2=v2;
|
||||
do {
|
||||
if (*s1++ != *s2++)
|
||||
return (*--s1 - *--s2);
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <ac/string.h>
|
||||
#include "lutil.h"
|
||||
|
||||
char *strdup( const char *s )
|
||||
char *(strdup)( const char *s )
|
||||
{
|
||||
char *p;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user