diff options
author | dan <dan@noemail.net> | 2010-06-02 05:53:53 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-06-02 05:53:53 +0000 |
commit | 558814f8c6084d5a4e2abecf94af84d4eb7e99d3 (patch) | |
tree | a6e122060822d6b983b42c357e96453ad7f91f75 /src/attach.c | |
parent | 8b3cf82ddfb6e7897a970b14cd4e76ae2ee71268 (diff) | |
download | sqlite-558814f8c6084d5a4e2abecf94af84d4eb7e99d3.tar.gz sqlite-558814f8c6084d5a4e2abecf94af84d4eb7e99d3.zip |
Add some 'const' markers to static data that is really constant.
FossilOrigin-Name: e7073e23b80e7cae0c76d42f014ee9b2d40a8f2f
Diffstat (limited to 'src/attach.c')
-rw-r--r-- | src/attach.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attach.c b/src/attach.c index 0299cbfb3..ccbb2e925 100644 --- a/src/attach.c +++ b/src/attach.c @@ -289,7 +289,7 @@ detach_error: static void codeAttach( Parse *pParse, /* The parser context */ int type, /* Either SQLITE_ATTACH or SQLITE_DETACH */ - FuncDef *pFunc, /* FuncDef wrapper for detachFunc() or attachFunc() */ + FuncDef const *pFunc,/* FuncDef wrapper for detachFunc() or attachFunc() */ Expr *pAuthArg, /* Expression to pass to authorization callback */ Expr *pFilename, /* Name of database file */ Expr *pDbname, /* Name of the database to use internally */ @@ -370,7 +370,7 @@ attach_end: ** DETACH pDbname */ void sqlite3Detach(Parse *pParse, Expr *pDbname){ - static FuncDef detach_func = { + static const FuncDef detach_func = { 1, /* nArg */ SQLITE_UTF8, /* iPrefEnc */ 0, /* flags */ @@ -391,7 +391,7 @@ void sqlite3Detach(Parse *pParse, Expr *pDbname){ ** ATTACH p AS pDbname KEY pKey */ void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){ - static FuncDef attach_func = { + static const FuncDef attach_func = { 3, /* nArg */ SQLITE_UTF8, /* iPrefEnc */ 0, /* flags */ |