Module: kamailio
Branch: master
Commit: 24d1b3b975ef82400adde37e9851143d7f1b4e4d
URL:
https://github.com/kamailio/kamailio/commit/24d1b3b975ef82400adde37e9851143…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-03-06T08:11:43+01:00
db_cassandra: remove a few unused variables (compiler warnings)
---
Modified: src/modules/db_cassandra/dbcassa_table.c
---
Diff:
https://github.com/kamailio/kamailio/commit/24d1b3b975ef82400adde37e9851143…
Patch:
https://github.com/kamailio/kamailio/commit/24d1b3b975ef82400adde37e9851143…
---
diff --git a/src/modules/db_cassandra/dbcassa_table.c
b/src/modules/db_cassandra/dbcassa_table.c
index 71e027c0eb..0585414ec1 100644
--- a/src/modules/db_cassandra/dbcassa_table.c
+++ b/src/modules/db_cassandra/dbcassa_table.c
@@ -186,7 +186,7 @@ dbcassa_table_p dbcassa_load_file(str* dbn, str* tbn)
#define KEY_MAX_LEN 10
FILE *fin=NULL;
char buf[4096];
- int c, crow, ccol, bp, max_auto;
+ int c, ccol, bp;
dbcassa_table_p dtp = 0;
dbcassa_column_p colp= 0;
dbcassa_column_p key[KEY_MAX_LEN];
@@ -209,9 +209,7 @@ dbcassa_table_p dbcassa_load_file(str* dbn, str* tbn)
goto done;
state = DBCASSA_FLINE_ST;
- crow = ccol = -1;
c = fgetc(fin);
- max_auto = 0;
while(c!=EOF) {
switch(state) {
case DBCASSA_FLINE_ST: