Skip to content

Commit

Permalink
use CS_INT for variable, as that's what the function takes
Browse files Browse the repository at this point in the history
Instead of making the variable "int", and then casting it to
CS_INT when calling the function.  That just won't work.
  • Loading branch information
alandekok committed Mar 9, 2020
1 parent a4679a1 commit 897c648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c
Expand Up @@ -315,9 +315,9 @@ static sql_rcode_t sql_query(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *
static int sql_num_fields(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t *config)
{
rlm_sql_freetds_conn_t *conn = handle->conn;
int num = 0;
CS_INT num = 0;

if (ct_res_info(conn->command, CS_NUMDATA, (CS_INT *)&num, CS_UNUSED, NULL) != CS_SUCCEED) {
if (ct_res_info(conn->command, CS_NUMDATA, &num, CS_UNUSED, NULL) != CS_SUCCEED) {
ERROR("Error retrieving column count");

return RLM_SQL_ERROR;
Expand Down

0 comments on commit 897c648

Please sign in to comment.