summaryrefslogtreecommitdiff
path: root/minecctl
diff options
context:
space:
mode:
Diffstat (limited to 'minecctl')
-rw-r--r--minecctl/minecctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c
index bbc5d47..6f3133d 100644
--- a/minecctl/minecctl.c
+++ b/minecctl/minecctl.c
@@ -15,7 +15,7 @@
#include "server-config-options.h"
void
-__debug(enum debug_lvl lvl, const char *fmt, ...)
+__debug(_unused_ enum debug_lvl lvl, const char *fmt, ...)
{
va_list ap;
@@ -24,7 +24,7 @@ __debug(enum debug_lvl lvl, const char *fmt, ...)
va_end(ap);
}
-__attribute__((noreturn)) void
+_noreturn_ void
__die(const char *fmt, ...)
{
va_list ap;
@@ -108,7 +108,7 @@ static void
read_packet(int sfd, char *buf, size_t len, int32_t *id, int32_t *type, const char **msg)
{
size_t off = 0;
- size_t r;
+ ssize_t r;
const char *error;
while (true) {
@@ -139,7 +139,7 @@ static void
send_msg(int sfd, char *buf, size_t len, enum rcon_packet_type type,
const char *msg, enum rcon_packet_type *rtype, const char **reply)
{
- static unsigned rcon_packet_id = 1;
+ static uint32_t rcon_packet_id = 1;
size_t plen;
int32_t id;