Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed to work with latest CZMQ #49

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libmdp/src/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ s_order_update (order_t *self, int volume)

// Prepare and send report to the client
zmsg_t *report = zmsg_new ();
zmsg_pushstr (report, "%d", volume);
zmsg_pushstrf (report, "%d", volume);

if (self->volume == 0)
zmsg_pushstr (report, "FILL");
Expand Down
2 changes: 1 addition & 1 deletion libmdp/src/mdp_broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ s_broker_destroy (broker_t **self_p)
void
s_broker_bind (broker_t *self, char *endpoint)
{
zsocket_bind (self->socket, endpoint);
zsocket_bind (self->socket, "%s", endpoint);
zclock_log ("I: MDP broker/0.2.0 is active at %s", endpoint);
}

Expand Down
2 changes: 1 addition & 1 deletion libmdp/src/trader.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main (int argc, char *argv [])
for (count = 0; count < 5; count++) {
zmsg_t *request = zmsg_new ();
zmsg_pushstr (request, "8"); // volume
zmsg_pushstr (request, "%d", count + 1000); // price
zmsg_pushstrf (request, "%d", count + 1000); // price
zmsg_pushstr (request, "SELL");
mdp_client_send (client, "NYSE", &request);
}
Expand Down