diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-23 17:17:55 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-23 17:17:55 -0300 |
commit | e001970cc7ca527ea7e81647d2fe4b6b5afd4478 (patch) | |
tree | b3bf82e28ac654006ee9f366503dd6a64386db14 /sql/udf_example.c | |
parent | 507ca08ff6a731c811a82869f85ba5166e8a9df1 (diff) | |
download | mariadb-git-e001970cc7ca527ea7e81647d2fe4b6b5afd4478.tar.gz |
WL#5498: Remove dead and unused source code
Remove workarounds for ancient systems.
mysys/default.c:
Make cast more explicit to ensure a correct offset.
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r-- | sql/udf_example.c | 3 |
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; } |