git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidying
[exim.git]
/
src
/
src
/
lookups
/
sqlite.c
diff --git
a/src/src/lookups/sqlite.c
b/src/src/lookups/sqlite.c
index e2330f920240c49ba5279268367c7a2ffd2c6401..0b01fdbce9b1d9df7007c848fc1ea123774df377 100644
(file)
--- a/
src/src/lookups/sqlite.c
+++ b/
src/src/lookups/sqlite.c
@@
-23,7
+23,7
@@
sqlite_open(uschar *filename, uschar **errmsg)
sqlite3 *db = NULL;
int ret;
sqlite3 *db = NULL;
int ret;
-ret = sqlite3_open(
(char *)
filename, &db);
+ret = sqlite3_open(
CS
filename, &db);
if (ret != 0)
{
*errmsg = (void *)sqlite3_errmsg(db);
if (ret != 0)
{
*errmsg = (void *)sqlite3_errmsg(db);
@@
-55,7
+55,7
@@
int i;
/* For second and subsequent results, insert \n */
if (res->string != NULL)
/* For second and subsequent results, insert \n */
if (res->string != NULL)
- res->string = string_cat(res->string, &res->size, &res->len, US"\n", 1);
+ res->string = string_cat
n
(res->string, &res->size, &res->len, US"\n", 1);
if (argc > 1)
{
if (argc > 1)
{
@@
-86,7
+86,7
@@
sqlite_find(void *handle, uschar *filename, const uschar *query, int length,
int ret;
struct strbuf res = { NULL, 0, 0 };
int ret;
struct strbuf res = { NULL, 0, 0 };
-ret = sqlite3_exec(handle,
(char *)
query, sqlite_callback, &res, (char **)errmsg);
+ret = sqlite3_exec(handle,
CS
query, sqlite_callback, &res, (char **)errmsg);
if (ret != SQLITE_OK)
{
debug_printf("sqlite3_exec failed: %s\n", *errmsg);
if (ret != SQLITE_OK)
{
debug_printf("sqlite3_exec failed: %s\n", *errmsg);