mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Protect strdup/memcmp from macro subsitution. Let compiler pick registers.
This commit is contained in:
parent
3474bbaed5
commit
6d2f28c080
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue