summaryrefslogtreecommitdiff
path: root/minecctl/mc-commands.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-07-07 22:32:11 +0200
committerDavid Härdeman <david@hardeman.nu>2020-07-07 22:32:11 +0200
commit4ae60696aed938347cc1cf2a5d8f5a2b86292132 (patch)
treeb83ad5727b56f010c0e90bb3f80b4ff95bf04082 /minecctl/mc-commands.c
parente685df91251ca111e42306e6f36835e55f052c0c (diff)
Improve handling of info and status commands
Diffstat (limited to 'minecctl/mc-commands.c')
-rw-r--r--minecctl/mc-commands.c6
1 files changed, 3 insertions, 3 deletions
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;