Revision b3878656 src/Cache/topo_proto.c

View differences:

src/Cache/topo_proto.c
19 19
 struct peer_cache *myEntry;
20 20
};
21 21

  
22
static int topo_payload_fill(struct topo_context *context, uint8_t *payload, int size, struct peer_cache *c, struct nodeID *snot, int max_peers, int include_me)
22
static int topo_payload_fill(struct topo_context *context, uint8_t *payload, int size, struct peer_cache *c, const struct nodeID *snot, int max_peers, int include_me)
23 23
{
24 24
  int i;
25 25
  uint8_t *p = payload;
......
82 82
  return len > 0  ? send_to_peer(nodeid(context->myEntry, 0), dst, pkt, sizeof(struct topo_header) + len) : len;
83 83
}
84 84

  
85
int topo_proto_metadata_update(struct topo_context *context, void *meta, int meta_size)
85
int topo_proto_metadata_update(struct topo_context *context, const void *meta, int meta_size)
86 86
{
87 87
  if (cache_metadata_update(context->myEntry, nodeid(context->myEntry, 0), meta, meta_size) > 0) {
88 88
    return 1;
......
91 91
  return -1;
92 92
}
93 93

  
94
struct topo_context* topo_proto_init(struct nodeID *s, void *meta, int meta_size)
94
struct topo_context* topo_proto_init(struct nodeID *s, const void *meta, int meta_size)
95 95
{
96 96
  struct topo_context* con;
97 97

  

Also available in: Unified diff