ipc: fix const issues

Files were regenerated with a patched zproto generator
This commit is contained in:
moneromooo-monero 2015-10-31 19:59:03 +00:00
parent 939b1d11f0
commit 81d89c0301
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
3 changed files with 9 additions and 8 deletions

View File

@ -563,7 +563,7 @@ void
wap_proto_set_reason (wap_proto_t *self, const char *value);
// Self test of this class
int
void
wap_proto_test (bool verbose);
// @end

View File

@ -113,7 +113,7 @@ typedef struct {
uint client_id; // Client identifier counter
size_t timeout; // Default client expiry timeout
bool verbose; // Verbose logging enabled?
char *log_prefix; // Default log prefix
const char *log_prefix; // Default log prefix
} s_server_t;
@ -1318,6 +1318,7 @@ s_server_new (zsock_t *pipe)
self->pipe = pipe;
self->router = zsock_new (ZMQ_ROUTER);
assert (self->router);
// By default the socket will discard outgoing messages above the
// HWM of 1,000. This isn't helpful for high-volume streaming. We
// will use a unbounded queue here. If applications need to guard

View File

@ -2490,7 +2490,9 @@ wap_proto_set_reason (wap_proto_t *self, const char *value)
// --------------------------------------------------------------------------
// Selftest
int
#if 0
/* This code trolls const, and is just needed for tests, take it out for now */
void
wap_proto_test (bool verbose)
{
printf (" * wap_proto:");
@ -2544,10 +2546,8 @@ wap_proto_test (bool verbose)
wap_proto_set_id (self, WAP_PROTO_BLOCKS);
zlist_t *blocks_block_ids = zlist_new ();
char name[] = "Name: Brutus";
zlist_append (blocks_block_ids, name);
char age[] = "Age: 43";
zlist_append (blocks_block_ids, age);
zlist_append (blocks_block_ids, "Name: Brutus");
zlist_append (blocks_block_ids, "Age: 43");
wap_proto_set_block_ids (self, &blocks_block_ids);
wap_proto_set_start_height (self, 123);
// Send twice
@ -3143,5 +3143,5 @@ wap_proto_test (bool verbose)
// @end
printf ("OK\n");
return 0;
}
#endif