1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix compiler warnings under OpenVMS. Ticket #357. (CVS 1088)

FossilOrigin-Name: c95f347cac27732533a2f6fd4ba50bf00eef59f3
This commit is contained in:
drh
2003-08-26 11:41:27 +00:00
parent 8460ea0652
commit ec1bd0bd72
4 changed files with 17 additions and 13 deletions

View File

@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: func.c,v 1.29 2003/08/20 01:03:34 drh Exp $
** $Id: func.c,v 1.30 2003/08/26 11:41:27 drh Exp $
*/
#include <ctype.h>
#include <math.h>
@ -220,7 +220,9 @@ static void last_insert_rowid(sqlite_func *context, int arg, const char **argv){
*/
static void likeFunc(sqlite_func *context, int arg, const char **argv){
if( argv[0]==0 || argv[1]==0 ) return;
sqlite_set_result_int(context, sqliteLikeCompare(argv[0], argv[1]));
sqlite_set_result_int(context,
sqliteLikeCompare((const unsigned char*)argv[0],
(const unsigned char*)argv[1]));
}
/*
@ -234,7 +236,9 @@ static void likeFunc(sqlite_func *context, int arg, const char **argv){
*/
static void globFunc(sqlite_func *context, int arg, const char **argv){
if( argv[0]==0 || argv[1]==0 ) return;
sqlite_set_result_int(context, sqliteGlobCompare(argv[0], argv[1]));
sqlite_set_result_int(context,
sqliteGlobCompare((const unsigned char*)argv[0],
(const unsigned char*)argv[1]));
}
/*

View File

@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.88 2003/08/26 11:25:58 drh Exp $
** @(#) $Id: pager.c,v 1.89 2003/08/26 11:41:27 drh Exp $
*/
#include "os.h" /* Must be first to enable large file support */
#include "sqliteInt.h"
@ -316,7 +316,7 @@ static int write32bits(OsFile *fd, u32 val){
*/
static void store32bits(u32 val, PgHdr *p, int offset){
unsigned char *ac;
ac = &((char*)PGHDR_TO_DATA(p))[offset];
ac = &((unsigned char*)PGHDR_TO_DATA(p))[offset];
if( journal_format<=1 ){
memcpy(ac, &val, 4);
}else{