Remove or mark unused variables

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-10-10 00:02:45 +02:00
parent a384a95529
commit fc2489d9e1
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -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);
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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];