aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
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/datastore
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/datastore')
-rw-r--r--src/datastore/gnunet-service-datastore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c
index 445c3576e..1e699fea3 100644
--- a/src/datastore/gnunet-service-datastore.c
+++ b/src/datastore/gnunet-service-datastore.c
@@ -949,7 +949,7 @@ handle_put (void *cls,
949 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 949 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
950 "Processing PUT request for `%s' of type %u\n", 950 "Processing PUT request for `%s' of type %u\n",
951 GNUNET_h2s (&dm->key), 951 GNUNET_h2s (&dm->key),
952 ntohl (dm->type)); 952 (uint32_t) ntohl (dm->type));
953 rid = ntohl (dm->rid); 953 rid = ntohl (dm->rid);
954 size = ntohl (dm->size); 954 size = ntohl (dm->size);
955 if (rid > 0) 955 if (rid > 0)
@@ -1012,7 +1012,7 @@ handle_get (void *cls,
1012 1012
1013 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1013 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1014 "Processing GET request of type %u\n", 1014 "Processing GET request of type %u\n",
1015 ntohl (msg->type)); 1015 (uint32_t) ntohl (msg->type));
1016 GNUNET_STATISTICS_update (stats, 1016 GNUNET_STATISTICS_update (stats,
1017 gettext_noop ("# GET requests received"), 1017 gettext_noop ("# GET requests received"),
1018 1, 1018 1,
@@ -1043,7 +1043,7 @@ handle_get_key (void *cls,
1043 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1043 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1044 "Processing GET request for `%s' of type %u\n", 1044 "Processing GET request for `%s' of type %u\n",
1045 GNUNET_h2s (&msg->key), 1045 GNUNET_h2s (&msg->key),
1046 ntohl (msg->type)); 1046 (uint32_t) ntohl (msg->type));
1047 GNUNET_STATISTICS_update (stats, 1047 GNUNET_STATISTICS_update (stats,
1048 gettext_noop ("# GET KEY requests received"), 1048 gettext_noop ("# GET KEY requests received"),
1049 1, 1049 1,
@@ -1238,7 +1238,7 @@ handle_remove (void *cls,
1238 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1238 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1239 "Processing REMOVE request for `%s' of type %u\n", 1239 "Processing REMOVE request for `%s' of type %u\n",
1240 GNUNET_h2s (&dm->key), 1240 GNUNET_h2s (&dm->key),
1241 ntohl (dm->type)); 1241 (uint32_t) ntohl (dm->type));
1242 plugin->api->get_key (plugin->api->cls, 1242 plugin->api->get_key (plugin->api->cls,
1243 0, 1243 0,
1244 &dm->key, 1244 &dm->key,