From 858d2cd9be35a5f6c051b37bfb2a02e920a888b4 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 12 Jul 2020 14:12:53 -0400 Subject: Use X macro for statements --- contexts.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'contexts.c') diff --git a/contexts.c b/contexts.c index 6ed9223..859fc96 100644 --- a/contexts.c +++ b/contexts.c @@ -124,20 +124,20 @@ enum kcgi_err contextsPage(struct kreq *req) { error = khtml_closeelem(&html, 1); if (error) return error; - sqlite3_reset(stmt.contextsMOTD); - dbBindText(stmt.contextsMOTD, ":network", scope.network); + sqlite3_reset(stmt.motd); + dbBindText(stmt.motd, ":network", scope.network); - result = sqlite3_step(stmt.contextsMOTD); + result = sqlite3_step(stmt.motd); if (result == SQLITE_ROW) { error = 0 || khtml_elem(&html, KELEM_H2) || khtml_puts(&html, "MOTD") || khtml_closeelem(&html, 1) || khtml_elem(&html, KELEM_PRE) - || khtml_puts(&html, sqlite3_column_text(stmt.contextsMOTD, 0)) + || khtml_puts(&html, sqlite3_column_text(stmt.motd, 0)) || khtml_closeelem(&html, 1); if (error) return error; - result = sqlite3_step(stmt.contextsMOTD); + result = sqlite3_step(stmt.motd); } if (result != SQLITE_DONE) errx(EX_SOFTWARE, "%s", sqlite3_errmsg(db)); -- cgit 1.4.1