diff options
Diffstat (limited to 'devel/cvstrac/files/patch-view.c')
-rw-r--r-- | devel/cvstrac/files/patch-view.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/cvstrac/files/patch-view.c b/devel/cvstrac/files/patch-view.c new file mode 100644 index 000000000000..5c039d1299c3 --- /dev/null +++ b/devel/cvstrac/files/patch-view.c @@ -0,0 +1,20 @@ +--- ./view.c.orig 2007-01-27 18:29:39.000000000 -0500 ++++ ./view.c 2009-11-09 17:15:57.000000000 -0500 +@@ -219,8 +219,6 @@ + ** pointer to an error message string (obtained from malloc) if + ** there is a problem. + */ +-extern int sqlite3StrNICmp(const char*,const char*,int); +-extern int sqlite3StrICmp(const char*,const char*); + char *verify_sql_statement(char *zSql){ + int i; + +@@ -228,7 +226,7 @@ + ** the first token is "SELECT" and that there are no unquoted semicolons. + */ + for(i=0; isspace(zSql[i]); i++){} +- if( sqlite3StrNICmp(&zSql[i],"select",6)!=0 ){ ++ if( sqlite3_strnicmp(&zSql[i],"select",6)!=0 ){ + return mprintf("The SQL must be a SELECT statement"); + } + for(i=0; zSql[i]; i++){ |