diff --git a/plugins/chargen.c b/plugins/chargen.c index b3e1febc..97e463da 100644 --- a/plugins/chargen.c +++ b/plugins/chargen.c @@ -75,10 +75,9 @@ static int send_peer(int sd, char *buf, ssize_t len, struct sockaddr *sa, sockle return sendto(sd, pattern, strlen(pattern), MSG_DONTWAIT, sa, sa_len); } -static int cb(int type) +static int cb(int UNUSED(type)) { int sd = STDIN_FILENO; - ssize_t len; char buf[BUFSIZ]; struct sockaddr_storage sa; socklen_t sa_len = sizeof(sa); diff --git a/plugins/daytime.c b/plugins/daytime.c index 4ea9ce11..929c9c1f 100644 --- a/plugins/daytime.c +++ b/plugins/daytime.c @@ -64,7 +64,7 @@ static int send_peer(int sd, char *buf, ssize_t len, struct sockaddr *sa, sockle return sendto(sd, now, strlen(now), MSG_DONTWAIT, sa, sa_len); } -static int cb(int type) +static int cb(int UNUSED(type)) { int sd = STDIN_FILENO; char buf[BUFSIZ]; diff --git a/plugins/discard.c b/plugins/discard.c index 94bc56c7..beb386ad 100644 --- a/plugins/discard.c +++ b/plugins/discard.c @@ -27,7 +27,7 @@ #include "../plugin.h" -static int cb(int type) +static int cb(int UNUSED(type)) { int sd = STDIN_FILENO; char buf[BUFSIZ];