diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 15:45:21 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 15:45:21 -0700 |
commit | cbbb37271bdfd5b51824f8b5a3ee5354236beff0 (patch) | |
tree | b5514e2a9d104d36b4877c691a1d44e8ee762926 /web/web_scoreboard.c | |
parent | 46d5c38b80b2e5f6b237ea0313ba23c408bdf7fe (diff) | |
download | dartboat-cbbb37271bdfd5b51824f8b5a3ee5354236beff0.tar.gz dartboat-cbbb37271bdfd5b51824f8b5a3ee5354236beff0.tar.xz |
web: remove active leg ptr; various cleanup
Diffstat (limited to 'web/web_scoreboard.c')
-rw-r--r-- | web/web_scoreboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c index 4ca823a..3b288c5 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -19,14 +19,14 @@ static struct { void scoreboard_set_player_active(int pn) { - char sel[64], *psel = sel; + char buf[64], *sel = buf; if (pn == -1) - psel = NULL; + sel = NULL; else sprintf(sel, "#p%d-info", pn); - dom_set_uniq_class(psel, "active", "[id$=-info]"); + dom_set_uniq_class(sel, "active", "[id$=-info]"); } void scoreboard_set_player_name(int pn, char *str) |