aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2017-02-25 12:50:24 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2017-02-25 21:03:32 +0000
commit31f699c7eeacc991abad778f881f51b0dbdcbc6d (patch)
treeb8ff1ccf0ec34b3fc7f38c05c7c8e61c7a625c7a /src/peerstore
parent0eb3848d99441a237ba2a6585a3c054d67f28c53 (diff)
downloadgnunet-31f699c7eeacc991abad778f881f51b0dbdcbc6d.tar.gz
gnunet-31f699c7eeacc991abad778f881f51b0dbdcbc6d.zip
W32: cast ntohl() result to uint32_t
W32 version of ntohl() returns u_long. Thank you, Microsoft!
Diffstat (limited to 'src/peerstore')
-rw-r--r--src/peerstore/gnunet-service-peerstore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerstore/gnunet-service-peerstore.c b/src/peerstore/gnunet-service-peerstore.c
index 665e625fd..8200c2366 100644
--- a/src/peerstore/gnunet-service-peerstore.c
+++ b/src/peerstore/gnunet-service-peerstore.c
@@ -523,11 +523,11 @@ handle_store (void *cls,
523 523
524 record = PEERSTORE_parse_record_message (srm); 524 record = PEERSTORE_parse_record_message (srm);
525 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 525 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
526 "Received a store request. Sub system `%s' Peer `%s Key `%s' Options: %d.\n", 526 "Received a store request. Sub system `%s' Peer `%s Key `%s' Options: %u.\n",
527 record->sub_system, 527 record->sub_system,
528 GNUNET_i2s (record->peer), 528 GNUNET_i2s (record->peer),
529 record->key, 529 record->key,
530 ntohl (srm->options)); 530 (uint32_t) ntohl (srm->options));
531 record->client = client; 531 record->client = client;
532 if (GNUNET_OK != 532 if (GNUNET_OK !=
533 db->store_record (db->cls, 533 db->store_record (db->cls,