From 4ae60696aed938347cc1cf2a5d8f5a2b86292132 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 7 Jul 2020 22:32:11 +0200 Subject: Improve handling of info and status commands --- minecctl/mc-commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minecctl/mc-commands.c') diff --git a/minecctl/mc-commands.c b/minecctl/mc-commands.c index c65f166..fb87430 100644 --- a/minecctl/mc-commands.c +++ b/minecctl/mc-commands.c @@ -8,8 +8,8 @@ #include "misc.h" #include "shared/mc-protocol.h" -bool do_mc_pcount(struct cfg *cfg, struct server *server, unsigned *online, - unsigned *max, const char **error) +bool do_mc_pcount(_unused_ struct cfg *cfg, struct server *server, + unsigned *online, unsigned *max, const char **error) { struct saddr *saddr; char buf[4096]; @@ -18,7 +18,7 @@ bool do_mc_pcount(struct cfg *cfg, struct server *server, unsigned *online, bool rv = false; int fd; - fd = connect_any(&server->scfg.remotes, &saddr, &error); + fd = connect_any(&server->scfg.remotes, &saddr, error); if (fd < 0) return false; -- cgit v1.2.3