Browse files

Fixed const-correctness for sockaddr on dht_ping_node

  • Loading branch information...
1 parent cfbd1a7 commit b5b4ce70a683ff3c0161aaf9e909f7e9aadba8ae @GamePad64 GamePad64 committed with Jun 18, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 dht.c
  2. +1 −1 dht.h
2 dht.c
@@ -2340,7 +2340,7 @@ dht_insert_node(const unsigned char *id, struct sockaddr *sa, int salen)
-dht_ping_node(struct sockaddr *sa, int salen)
+dht_ping_node(const struct sockaddr *sa, int salen)
unsigned char tid[4];
2 dht.h
@@ -39,7 +39,7 @@ extern FILE *dht_debug;
int dht_init(int s, int s6, const unsigned char *id, const unsigned char *v);
int dht_insert_node(const unsigned char *id, struct sockaddr *sa, int salen);
-int dht_ping_node(struct sockaddr *sa, int salen);
+int dht_ping_node(const struct sockaddr *sa, int salen);
int dht_periodic(const void *buf, size_t buflen,
const struct sockaddr *from, int fromlen,
time_t *tosleep, dht_callback *callback, void *closure);

0 comments on commit b5b4ce7

Please sign in to comment.