Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
Make portable usage of functions,
bzero -> memset
|
strmov -> strcpy
|
#define strmov(a,b) stpcpy(a,b)
|
only mysql.h needed get rid of other includes,
get rid of warnings,
$ gcc -c udf_example.c -I../include -I../../builds/10.3/include -fPIC
|
udf_example.c:141:0: warning: "bzero" redefined
|
#define bzero(a,b) memset(a,0,b)
|
In file included from ../include/my_sys.h:20:0,
|
from udf_example.c:134:
|
../include/m_string.h:60:0: note: this is the location of the previous definition
|
# define bzero(A,B) memset((A),0,(B))
|
update examples and example documentation in the code.