summaryrefslogtreecommitdiff
path: root/include/typelib.h
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2007-03-27 21:57:33 +0400
committerunknown <kostja@bodhi.local>2007-03-27 21:57:33 +0400
commit587942a792f5c31d0c5fc900dcacb454a0000e13 (patch)
treeea5dad826eb65434df56ccc0d4b4a708faaf057d /include/typelib.h
parentc601210ba48068b6287dc71b7ddfbd9997f0c54f (diff)
downloadmariadb-git-587942a792f5c31d0c5fc900dcacb454a0000e13.tar.gz
Fix warnings.
include/typelib.h: Fix a compile warning. char *x is actually updated if it's found in the typelib (a peculiar way to return canonical value in case of a partial match) mysys/typelib.c: Fix a warning. sql/item_func.cc: Fix a compile-time warning.
Diffstat (limited to 'include/typelib.h')
-rw-r--r--include/typelib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/typelib.h b/include/typelib.h
index 79d3acd2d64..e04ec20f2bc 100644
--- a/include/typelib.h
+++ b/include/typelib.h
@@ -26,7 +26,7 @@ typedef struct st_typelib { /* Different types saved here */
unsigned int *type_lengths;
} TYPELIB;
-extern int find_type(const char *x, const TYPELIB *typelib,
+extern int find_type(char *x, const TYPELIB *typelib,
unsigned int full_name);
extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
extern const char *get_type(TYPELIB *typelib,unsigned int nr);