Permalink
Browse files

Merge pull request #78 from bluca/gcc7

Problem: build fails with GCC 7
  • Loading branch information...
keent committed Jul 5, 2017
2 parents 17dc203 + 419f121 commit 8940f34e0f1c8f25c1c693ed8db069f58fbc5ad0
Showing with 4 additions and 2 deletions.
  1. +2 −0 project.xml
  2. +1 −1 src/fmq_client_engine.inc
  3. +1 −1 src/fmq_server_engine.inc
View
@@ -2,6 +2,8 @@
name = "filemq"
description = "A FileMQ server and client"
script = "zproject.gsl"
url = "https://github.com/zeromq/filemq"
repository = "https://github.com/zeromq/filemq"
>
<include filename = "license.xml" />
<version major = "2" minor = "0" patch = "0" />
@@ -196,7 +196,7 @@ s_client_new (zsock_t *cmdpipe, zsock_t *msgpipe)
self->msgpipe = msgpipe;
self->state = start_state;
self->event = NULL_event;
snprintf (self->log_prefix, sizeof (self->log_prefix) - 1,
snprintf (self->log_prefix, sizeof (self->log_prefix),
"%6d:%-33s", randof (1000000), "fmq_client");
self->dealer = zsock_new (ZMQ_DEALER);
if (self->dealer)
@@ -270,7 +270,7 @@ engine_set_log_prefix (client_t *client, const char *string)
{
if (client) {
s_client_t *self = (s_client_t *) client;
snprintf (self->log_prefix, sizeof (self->log_prefix) - 1,
snprintf (self->log_prefix, sizeof (self->log_prefix),
"%6d:%-33s", self->unique_id, string);
}
}

0 comments on commit 8940f34

Please sign in to comment.