diff options
author | June McEnroe <june@causal.agency> | 2020-07-12 14:12:53 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-12 14:12:53 -0400 |
commit | 858d2cd9be35a5f6c051b37bfb2a02e920a888b4 (patch) | |
tree | 001cc4d79cd13a1f73fd79c9744719303d8b0662 /contexts.c | |
parent | Always show later messages link when using before query (diff) | |
download | scooper-858d2cd9be35a5f6c051b37bfb2a02e920a888b4.tar.gz scooper-858d2cd9be35a5f6c051b37bfb2a02e920a888b4.zip |
Use X macro for statements
Diffstat (limited to '')
-rw-r--r-- | contexts.c | 10 |
1 files changed, 5 insertions, 5 deletions
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)); |