Revision ef4061e4 src/net_helper-win32.c

View differences:

src/net_helper-win32.c
198 198
  return (memcmp(&s1->addr, &s2->addr, sizeof(struct sockaddr_in)) == 0);
199 199
}
200 200

  
201
int nodeid_cmp(const struct nodeID *s1, const struct nodeID *s2)
202
{
203
  return memcmp(&s1->addr, &s2->addr, sizeof(struct sockaddr_in));
204
}
205

  
201 206
int nodeid_dump(uint8_t *b, const struct nodeID *s, size_t max_write_size)
202 207
{
203 208
  if (max_write_size < sizeof(struct sockaddr_in)) return -1;

Also available in: Unified diff