]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove col_type
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 6 Mar 2013 03:39:09 +0000 (22:39 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 6 Mar 2013 03:39:09 +0000 (22:39 -0500)
src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c

index b0ea9a7514af60af11632798246b93d205ca656a..da746ab263bed3eb5e07c49240efd50cd4a7bf80 100644 (file)
@@ -249,7 +249,7 @@ static int sql_fetch_row(rlm_sql_handle_t *handle, rlm_sql_config_t *config)
        int status;
        rlm_sql_conn *conn = handle->conn;
        
-       int i = 0, col_type;
+       int i = 0;
        
        char **row;
 
@@ -295,8 +295,7 @@ static int sql_fetch_row(rlm_sql_handle_t *handle, rlm_sql_config_t *config)
        
        for (i = 0; i < conn->col_count; i++)
        {
-               col_type = sqlite3_column_type(conn->statement, i);
-               switch (col_type)
+               switch (sqlite3_column_type(conn->statement, i))
                {
                case SQLITE_INTEGER:       
                        row[i] = talloc_asprintf(row, "%d",