Revision b3878656 src/Cache/cyclon_proto.c

View differences:

src/Cache/cyclon_proto.c
19 19
  struct topo_context *context;
20 20
};
21 21

  
22
struct cyclon_proto_context* cyclon_proto_init(struct nodeID *s, void *meta, int meta_size)
22
struct cyclon_proto_context* cyclon_proto_init(struct nodeID *s, const void *meta, int meta_size)
23 23
{
24 24
  struct cyclon_proto_context *con;
25 25
  con = malloc(sizeof(struct cyclon_proto_context));
......
45 45
  return topo_query_peer(context->context, sent_cache, dst, MSG_TYPE_TOPOLOGY, CYCLON_QUERY, 0);
46 46
}
47 47

  
48
int cyclon_proto_change_metadata(struct cyclon_proto_context *context, void *metadata, int metadata_size)
48
int cyclon_proto_change_metadata(struct cyclon_proto_context *context, const void *metadata, int metadata_size)
49 49
{
50 50
  if (topo_proto_metadata_update(context->context, metadata, metadata_size) <= 0) {
51 51
    return -1;

Also available in: Unified diff