From: Steinar H. Gunderson Date: Sat, 19 Feb 2005 01:24:35 +0000 (+0000) Subject: Rename tourn -> active_tournament X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=251dc64c47b1dc78e73316e76637986da97fd149 Rename tourn -> active_tournament --- diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index d5bb931..08d2bf2 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -9,7 +9,7 @@ public: std::string name; }; -Tournament tourn; +Tournament active_tournament; /* A trigger that sets a flag whenever it's trigged. */ class FlagTrigger : pqxx::trigger { @@ -62,19 +62,19 @@ public: void init(pqxx::connection &conn) { - conn.perform(FetchCurrentTournament(&tourn)); + conn.perform(FetchCurrentTournament(&active_tournament)); - if (tourn.id == -1) { + if (active_tournament.id == -1) { std::fprintf(stderr, "No active tournament\n"); } else { std::fprintf(stderr, "Current tournament is %d (name: '%s')\n", - tourn.id, tourn.name.c_str()); + active_tournament.id, active_tournament.name.c_str()); } } void main_loop(pqxx::connection &conn) { - if (tourn.id == -1) { + if (active_tournament.id == -1) { // No active tournament, sleep a second or so and exit sleep(1); return;