Revision e621cfdf som/net_helper.c

View differences:

som/net_helper.c
50 50
int send_data(const struct nodeID *from, const struct nodeID *to, const uint8_t *buffer_ptr, int buffer_size)
51 51
{
52 52
  return sendto(from->fd, buffer_ptr, buffer_size, 0,
53
                (struct sockaddr *)&to->addr, sizeof(struct sockaddr_in));
53
                (const struct sockaddr *)&to->addr, sizeof(struct sockaddr_in));
54 54
}
55 55

  
56 56
int recv_data(const struct nodeID *local, struct nodeID **remote, uint8_t *buffer_ptr, int buffer_size)

Also available in: Unified diff