projects
/
ccbs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b04e82
)
Rename tourn -> active_tournament
author
Steinar H. Gunderson
<sesse@samfundet.no>
Sat, 19 Feb 2005 01:24:35 +0000
(
01:24
+0000)
committer
Steinar H. Gunderson
<sesse@samfundet.no>
Sat, 19 Feb 2005 01:24:35 +0000
(
01:24
+0000)
bigscreen/ccbs_bigscreen.cpp
patch
|
blob
|
history
diff --git
a/bigscreen/ccbs_bigscreen.cpp
b/bigscreen/ccbs_bigscreen.cpp
index
d5bb931
..
08d2bf2
100644
(file)
--- a/
bigscreen/ccbs_bigscreen.cpp
+++ b/
bigscreen/ccbs_bigscreen.cpp
@@
-9,7
+9,7
@@
public:
std::string name;
};
std::string name;
};
-Tournament
tourn
;
+Tournament
active_tournament
;
/* A trigger that sets a flag whenever it's trigged. */
class FlagTrigger : pqxx::trigger {
/* A trigger that sets a flag whenever it's trigged. */
class FlagTrigger : pqxx::trigger {
@@
-62,19
+62,19
@@
public:
void init(pqxx::connection &conn)
{
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",
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)
{
}
}
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;
// No active tournament, sleep a second or so and exit
sleep(1);
return;