aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-15 15:54:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-15 15:54:43 +0000
commit27e45bef83fe17b339fe345e3455a67b7416e1d3 (patch)
treea916601653c8eaca9488d7dd55b4de565078047d /src/libserver/rspamd_control.c
parent46fd25c4dda2e4cc25f662dc5cb5dad0d4380503 (diff)
downloadrspamd-27e45bef83fe17b339fe345e3455a67b7416e1d3.tar.gz
rspamd-27e45bef83fe17b339fe345e3455a67b7416e1d3.zip
Fix warnings.
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r--src/libserver/rspamd_control.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index e274f100b..6696cd183 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -804,7 +804,6 @@ rspamd_srv_request_handler (gint fd, short what, gpointer ud)
struct rspamd_srv_request_data *rd = ud;
struct msghdr msg;
struct iovec iov;
- struct cmsghdr *cmsg;
guchar fdspace[CMSG_SPACE(sizeof (int))];
gssize r;
gint rfd = -1;
@@ -846,8 +845,6 @@ rspamd_srv_request_handler (gint fd, short what, gpointer ud)
}
if (msg.msg_controllen >= CMSG_SPACE(sizeof (int))) {
- cmsg = CMSG_FIRSTHDR (&msg);
-
rfd = *(int *) CMSG_DATA(CMSG_FIRSTHDR (&msg));
}