Revision 1deeaf91 net_helper-ml.c

View differences:

net_helper-ml.c
580 580
	return (mlCompareSocketIDs(s1->addr,s2->addr) == 0);
581 581
}
582 582

  
583
int nodeid_dump(uint8_t *b, const struct nodeID *s)
583
int nodeid_dump(uint8_t *b, const struct nodeID *s, size_t max_write_size)
584 584
{
585
  if (max_write_size < SOCKETID_STRING_SIZE) return -1;
586

  
585 587
  mlSocketIDToString(s->addr,(char *)b,SOCKETID_STRING_SIZE);
586 588
  //fprintf(stderr,"Dumping nodeID : ho scritto %s (%d bytes)\n",b, strlen((char *)b));
587 589

  

Also available in: Unified diff