diff options
author | Sean Bright <sean@malleable.com> | 2008-10-08 12:15:06 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2008-10-08 12:15:06 +0000 |
commit | ceee55ea63fcc720346a2d1f4676e65ca7cc3b59 (patch) | |
tree | 8b94a9048bc1b7003bd83aca11f995ebedafbf4c /res | |
parent | 24c127ac19eadc0d85270cbaee0f5b9cda16d40d (diff) |
Keep up with shadow warnings. One day I'll actually enable this in the Makefile.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r-- | res/res_odbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c index 0d257fcc6..a16f79a4a 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -758,7 +758,7 @@ static odbc_status odbc_obj_disconnect(struct odbc_obj *obj) int res; SQLINTEGER err; short int mlen; - unsigned char msg[200], stat[10]; + unsigned char msg[200], state[10]; /* Nothing to disconnect */ if (!obj->con) { @@ -779,7 +779,7 @@ static odbc_status odbc_obj_disconnect(struct odbc_obj *obj) obj->con = NULL; ast_log(LOG_DEBUG, "Database handle deallocated\n"); } else { - SQLGetDiagRec(SQL_HANDLE_DBC, obj->con, 1, stat, &err, msg, 100, &mlen); + SQLGetDiagRec(SQL_HANDLE_DBC, obj->con, 1, state, &err, msg, 100, &mlen); ast_log(LOG_WARNING, "Unable to deallocate database handle? %d errno=%d %s\n", res, (int)err, msg); } |