Skip to content
Snippets Groups Projects
Commit 6d2f28c0 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Protect strdup/memcmp from macro subsitution. Let compiler pick registers.

parent 3474bbae
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment