summaryrefslogtreecommitdiffstats
path: root/libmsi/tokenize.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-02-08 01:59:12 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-02-08 01:59:12 +0100
commita2a6330372621a7adb1bab2ef13d67de523b3d01 (patch)
tree2cc7b493e646c5fee1a836f5d0341400bcbfcd19 /libmsi/tokenize.c
parent6bde332f3a326d6b4836fca11b76d2099a2b8d66 (diff)
downloadmsitools-a2a6330372621a7adb1bab2ef13d67de523b3d01.tar.gz
msitools-a2a6330372621a7adb1bab2ef13d67de523b3d01.tar.xz
msitools-a2a6330372621a7adb1bab2ef13d67de523b3d01.zip
Clean-up all gcc warning
Diffstat (limited to 'libmsi/tokenize.c')
-rw-r--r--libmsi/tokenize.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmsi/tokenize.c b/libmsi/tokenize.c
index 3d95854..1320c4a 100644
--- a/libmsi/tokenize.c
+++ b/libmsi/tokenize.c
@@ -160,7 +160,8 @@ static const char isIdChar[] = {
** -1 if the token is (or might be) incomplete. Store the token
** type in *tokenType before returning.
*/
-int sql_get_token(const char *z, int *tokenType, int *skip){
+int sql_get_token(const char *zz, int *tokenType, int *skip){
+ guint8 *z = (guint8*)zz;
int i;
*skip = 0;
@@ -251,7 +252,7 @@ int sql_get_token(const char *z, int *tokenType, int *skip){
break;
}
for(i=1; isIdChar[z[i]]; i++){}
- *tokenType = sqlite_find_keyword(z, i);
+ *tokenType = sqlite_find_keyword(zz, i);
if( *tokenType == TK_ID && z[i] == '`' ) *skip = 1;
return i;
}