summaryrefslogtreecommitdiff
path: root/sql/udf_example.c
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:17:55 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:17:55 -0300
commite81506971f2c465f583e3f6f23857f50a88c48de (patch)
treeb3bf82e28ac654006ee9f366503dd6a64386db14 /sql/udf_example.c
parent68cd3bce9c04b2e0bef3521b51b881c5ba3068e6 (diff)
downloadmariadb-git-e81506971f2c465f583e3f6f23857f50a88c48de.tar.gz
WL#5498: Remove dead and unused source code
Remove workarounds for ancient systems.
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r--sql/udf_example.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c
index 284689d329f..5f8e71d25fa 100644
--- a/sql/udf_example.c
+++ b/sql/udf_example.c
@@ -133,7 +133,6 @@ typedef long long longlong;
#include <string.h>
#define strmov(a,b) stpcpy(a,b)
#define bzero(a,b) memset(a,0,b)
-#define memcpy_fixed(a,b,c) memcpy(a,b,c)
#endif
#endif
#include <mysql.h>
@@ -778,7 +777,7 @@ char *lookup(UDF_INIT *initid __attribute__((unused)), UDF_ARGS *args,
}
pthread_mutex_unlock(&LOCK_hostname);
#endif
- memcpy_fixed((char*) &in,(char*) *hostent->h_addr_list, sizeof(in.s_addr));
+ memcpy(&in, *hostent->h_addr_list, sizeof(in.s_addr));
*res_length= (ulong) (strmov(result, inet_ntoa(in)) - result);
return result;
}