aboutsummaryrefslogtreecommitdiff
path: root/src/set
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/set
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/set')
-rw-r--r--src/set/gnunet-service-set.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c
index c48518f08..30d43e8a1 100644
--- a/src/set/gnunet-service-set.c
+++ b/src/set/gnunet-service-set.c
@@ -781,7 +781,7 @@ handle_incoming_msg (struct Operation *op,
781 listener = op->listener; 781 listener = op->listener;
782 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 782 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
783 "Received P2P operation request (op %u, port %s) for active listener\n", 783 "Received P2P operation request (op %u, port %s) for active listener\n",
784 ntohl (msg->operation), 784 (uint32_t) ntohl (msg->operation),
785 GNUNET_h2s (&listener->app_id)); 785 GNUNET_h2s (&listener->app_id));
786 incoming_suggest (op, 786 incoming_suggest (op,
787 listener); 787 listener);
@@ -1075,7 +1075,7 @@ handle_client_create_set (void *cls,
1075 1075
1076 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1076 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1077 "Client created new set (operation %u)\n", 1077 "Client created new set (operation %u)\n",
1078 ntohl (msg->operation)); 1078 (uint32_t) ntohl (msg->operation));
1079 if (NULL != set_get (client)) 1079 if (NULL != set_get (client))
1080 { 1080 {
1081 /* There can only be one set per client */ 1081 /* There can only be one set per client */
@@ -1945,7 +1945,7 @@ handle_client_cancel (void *cls,
1945 } 1945 }
1946 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1946 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1947 "Client requested cancel for op %u\n", 1947 "Client requested cancel for op %u\n",
1948 ntohl (msg->request_id)); 1948 (uint32_t) ntohl (msg->request_id));
1949 found = GNUNET_NO; 1949 found = GNUNET_NO;
1950 for (op = set->ops_head; NULL != op; op = op->next) 1950 for (op = set->ops_head; NULL != op; op = op->next)
1951 { 1951 {
@@ -2019,7 +2019,7 @@ handle_client_accept (void *cls,
2019 2019
2020 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2020 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2021 "Client accepting request %u\n", 2021 "Client accepting request %u\n",
2022 ntohl (msg->accept_reject_id)); 2022 (uint32_t) ntohl (msg->accept_reject_id));
2023 GNUNET_assert (GNUNET_YES == op->is_incoming); 2023 GNUNET_assert (GNUNET_YES == op->is_incoming);
2024 op->is_incoming = GNUNET_NO; 2024 op->is_incoming = GNUNET_NO;
2025 GNUNET_CONTAINER_DLL_remove (incoming_head, 2025 GNUNET_CONTAINER_DLL_remove (incoming_head,