mirror of
https://github.com/monero-project/monero.git
synced 2025-01-28 18:56:31 +02:00
ipc: fix const issues
Files were regenerated with a patched zproto generator
This commit is contained in:
parent
939b1d11f0
commit
81d89c0301
@ -563,7 +563,7 @@ void
|
|||||||
wap_proto_set_reason (wap_proto_t *self, const char *value);
|
wap_proto_set_reason (wap_proto_t *self, const char *value);
|
||||||
|
|
||||||
// Self test of this class
|
// Self test of this class
|
||||||
int
|
void
|
||||||
wap_proto_test (bool verbose);
|
wap_proto_test (bool verbose);
|
||||||
// @end
|
// @end
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ typedef struct {
|
|||||||
uint client_id; // Client identifier counter
|
uint client_id; // Client identifier counter
|
||||||
size_t timeout; // Default client expiry timeout
|
size_t timeout; // Default client expiry timeout
|
||||||
bool verbose; // Verbose logging enabled?
|
bool verbose; // Verbose logging enabled?
|
||||||
char *log_prefix; // Default log prefix
|
const char *log_prefix; // Default log prefix
|
||||||
} s_server_t;
|
} s_server_t;
|
||||||
|
|
||||||
|
|
||||||
@ -1318,6 +1318,7 @@ s_server_new (zsock_t *pipe)
|
|||||||
|
|
||||||
self->pipe = pipe;
|
self->pipe = pipe;
|
||||||
self->router = zsock_new (ZMQ_ROUTER);
|
self->router = zsock_new (ZMQ_ROUTER);
|
||||||
|
assert (self->router);
|
||||||
// By default the socket will discard outgoing messages above the
|
// By default the socket will discard outgoing messages above the
|
||||||
// HWM of 1,000. This isn't helpful for high-volume streaming. We
|
// HWM of 1,000. This isn't helpful for high-volume streaming. We
|
||||||
// will use a unbounded queue here. If applications need to guard
|
// will use a unbounded queue here. If applications need to guard
|
||||||
|
@ -2490,7 +2490,9 @@ wap_proto_set_reason (wap_proto_t *self, const char *value)
|
|||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// Selftest
|
// 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)
|
wap_proto_test (bool verbose)
|
||||||
{
|
{
|
||||||
printf (" * wap_proto:");
|
printf (" * wap_proto:");
|
||||||
@ -2544,10 +2546,8 @@ wap_proto_test (bool verbose)
|
|||||||
wap_proto_set_id (self, WAP_PROTO_BLOCKS);
|
wap_proto_set_id (self, WAP_PROTO_BLOCKS);
|
||||||
|
|
||||||
zlist_t *blocks_block_ids = zlist_new ();
|
zlist_t *blocks_block_ids = zlist_new ();
|
||||||
char name[] = "Name: Brutus";
|
zlist_append (blocks_block_ids, "Name: Brutus");
|
||||||
zlist_append (blocks_block_ids, name);
|
zlist_append (blocks_block_ids, "Age: 43");
|
||||||
char age[] = "Age: 43";
|
|
||||||
zlist_append (blocks_block_ids, age);
|
|
||||||
wap_proto_set_block_ids (self, &blocks_block_ids);
|
wap_proto_set_block_ids (self, &blocks_block_ids);
|
||||||
wap_proto_set_start_height (self, 123);
|
wap_proto_set_start_height (self, 123);
|
||||||
// Send twice
|
// Send twice
|
||||||
@ -3143,5 +3143,5 @@ wap_proto_test (bool verbose)
|
|||||||
// @end
|
// @end
|
||||||
|
|
||||||
printf ("OK\n");
|
printf ("OK\n");
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user