* SQLite3 result set
*/
typedef struct {
- char **pazResult; /* Result of the query */
- unsigned int pnRow; /* Number of result rows */
- unsigned int pnColumn; /* Number of result columns */
- unsigned int curRow; /* Current row */
- char *pzErrmsg; /* Error message */
+ char **pazResult; /* Result of the query */
+ int pnRow; /* Number of result rows */
+ int pnColumn; /* Number of result columns */
+ int curRow; /* Current row */
+ char *pzErrmsg; /* Error message */
} sqlite3_res_t;
/* forward references */
sqlite3_instance_t *db = (sqlite3_instance_t *)dbdata;
char *querystring = NULL;
sqlite3_res_t *rs = NULL;
- unsigned int i = 0;
- unsigned int j = 0;
int qres = 0;
if ((query == COUNTZONE && rsp != NULL) ||
sqlite3_fetch_row(sqlite3_res_t *rs) {
char **retval = NULL;
if (rs != NULL) {
- if (rs->pnRow > 0U && rs->curRow < rs->pnRow) {
+ if (rs->pnRow > 0 && rs->curRow < rs->pnRow) {
int index = (rs->curRow + 1) * rs->pnColumn;
retval = &rs->pazResult[index];
rs->curRow++;
isc_result_t result = ISC_R_NOTFOUND;
char **row;
unsigned int fields;
- unsigned int i, j;
+ unsigned int j;
char *tmpString;
char *endp;
int ttl;