Skip to content

Commit

Permalink
ZMQ: fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Laszlo Meszaros committed Dec 18, 2014
1 parent 15fa852 commit 1b70152
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/zmq/zmq-destination.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ static worker_insert_result_t
zmq_worker_insert(LogThrDestDriver *destination, LogMessage *msg)
{
ZMQDestDriver *self = (ZMQDestDriver *)destination;
gboolean success = TRUE;
GString *result = g_string_new("");

if (self->socket == NULL)
Expand Down
2 changes: 2 additions & 0 deletions modules/zmq/zmq-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include "poll-fd-events.h"
#include "logproto/logproto-text-server.h"

void zmq_sd_set_address(LogDriver *source, const gchar *address);
void zmq_sd_set_port(LogDriver *source, gint port);

typedef struct _ZMQReaderContext
{
Expand Down
4 changes: 2 additions & 2 deletions modules/zmq/zmq-transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ typedef struct _LogTransportZMQ
} LogTransportZMQ;

static gssize
log_transport_zmq_read_method(LogTransport *s, gpointer buf, gsize buflen, GSockAddr **sa)
log_transport_zmq_read_method(LogTransport *s, gpointer buf, gsize buflen, LogTransportAuxData *aux)
{
LogTransportZMQ *self = (LogTransportZMQ *) s;
return zmq_recv(self->socket, buf, buflen, ZMQ_DONTWAIT);
return zmq_recv (self->socket, buf, buflen, ZMQ_DONTWAIT);
}

static gssize
Expand Down

0 comments on commit 1b70152

Please sign in to comment.