From: Sebastian Harl Date: Thu, 28 May 2015 08:08:45 +0000 (+0200) Subject: store_exec: Remove unnecessary casts. X-Git-Tag: sysdb-0.8.0~60 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9e9da48f6ee767b23a1d9b4fdd890f9201bf274b;p=sysdb.git store_exec: Remove unnecessary casts. --- diff --git a/src/core/store_exec.c b/src/core/store_exec.c index 6a8e8e7..705fbe1 100644 --- a/src/core/store_exec.c +++ b/src/core/store_exec.c @@ -325,33 +325,33 @@ exec_timeseries(sdb_strbuf_t *buf, sdb_strbuf_t *errbuf, */ int -sdb_store_query_execute(sdb_store_query_t *m, +sdb_store_query_execute(sdb_store_query_t *q, sdb_strbuf_t *buf, sdb_strbuf_t *errbuf) { sdb_timeseries_opts_t ts_opts; sdb_ast_node_t *ast; - if (! m) + if (! q) return -1; - if (! QUERY(m)->ast) { + if (! q->ast) { sdb_log(SDB_LOG_ERR, "store: Invalid empty query"); return -1; } - ast = QUERY(m)->ast; + ast = q->ast; switch (ast->type) { case SDB_AST_TYPE_FETCH: return exec_fetch(buf, errbuf, SDB_AST_FETCH(ast)->obj_type, SDB_AST_FETCH(ast)->hostname, SDB_AST_FETCH(ast)->name, - QUERY(m)->filter); + q->filter); case SDB_AST_TYPE_LIST: return exec_list(buf, errbuf, SDB_AST_LIST(ast)->obj_type, - QUERY(m)->filter); + q->filter); case SDB_AST_TYPE_LOOKUP: return exec_lookup(buf, errbuf, SDB_AST_LOOKUP(ast)->obj_type, - QUERY(m)->matcher, QUERY(m)->filter); + q->matcher, q->filter); case SDB_AST_TYPE_STORE: if (ast->type != SDB_AST_TYPE_STORE) {