summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-12 21:17:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-12 21:17:15 +0000
commit4e2dd0d6ab90aa2acc262356f9d385202101b36d (patch)
treed609f0636116ba25eea956435f2e039c170b50be
parent7b85c1edf6426e270978b06fc65367582dda9ec2 (diff)
downloadmandoc-4e2dd0d6ab90aa2acc262356f9d385202101b36d.tar.gz
Garbage collect an unused variable, no functional change;
found by Svyatoslav Mishyn <juef at openmailbox dot org> with cppcheck.
-rw-r--r--mandocdb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 1f3b05ff..351ee9af 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1255,7 +1255,6 @@ names_check(void)
{
sqlite3_stmt *stmt;
const char *name, *sec, *arch, *key;
- int irc;
sqlite3_prepare_v2(db,
"SELECT name, sec, arch, key FROM ("
@@ -1271,10 +1270,10 @@ names_check(void)
") USING (pageid);",
-1, &stmt, NULL);
- if (SQLITE_OK != sqlite3_bind_int64(stmt, 1, NAME_TITLE))
+ if (sqlite3_bind_int64(stmt, 1, NAME_TITLE) != SQLITE_OK)
say("", "%s", sqlite3_errmsg(db));
- while (SQLITE_ROW == (irc = sqlite3_step(stmt))) {
+ while (sqlite3_step(stmt) == SQLITE_ROW) {
name = (const char *)sqlite3_column_text(stmt, 0);
sec = (const char *)sqlite3_column_text(stmt, 1);
arch = (const char *)sqlite3_column_text(stmt, 2);