diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-06 21:29:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-06 21:29:55 +0000 |
commit | ba414944bc487d03442a05a8d6415ce8d536ddd0 (patch) | |
tree | 52d5a5fa7c85e75183028c652acaefd00139298c /src/revocation/gnunet-service-revocation.c | |
parent | e5b9727cdd7cb1adb99d69cfc33dd513f6efbed1 (diff) | |
download | gnunet-ba414944bc487d03442a05a8d6415ce8d536ddd0.tar.gz gnunet-ba414944bc487d03442a05a8d6415ce8d536ddd0.zip |
-fix config, fix ntohs, must be ntohl
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r-- | src/revocation/gnunet-service-revocation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index 7f85301be..6a29bb331 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c | |||
@@ -195,7 +195,7 @@ handle_query_message (void *cls, | |||
195 | GNUNET_h2s (&hc)); | 195 | GNUNET_h2s (&hc)); |
196 | qrm.header.size = htons (sizeof (struct QueryResponseMessage)); | 196 | qrm.header.size = htons (sizeof (struct QueryResponseMessage)); |
197 | qrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE); | 197 | qrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE); |
198 | qrm.is_valid = htons ((GNUNET_YES == res) ? GNUNET_NO : GNUNET_YES); | 198 | qrm.is_valid = htonl ((GNUNET_YES == res) ? GNUNET_NO : GNUNET_YES); |
199 | GNUNET_SERVER_notification_context_add (nc, | 199 | GNUNET_SERVER_notification_context_add (nc, |
200 | client); | 200 | client); |
201 | GNUNET_SERVER_notification_context_unicast (nc, | 201 | GNUNET_SERVER_notification_context_unicast (nc, |
@@ -328,7 +328,7 @@ handle_revoke_message (void *cls, | |||
328 | } | 328 | } |
329 | rrm.header.size = htons (sizeof (struct RevocationResponseMessage)); | 329 | rrm.header.size = htons (sizeof (struct RevocationResponseMessage)); |
330 | rrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE); | 330 | rrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE); |
331 | rrm.is_valid = htons ((GNUNET_OK == ret) ? GNUNET_NO : GNUNET_YES); | 331 | rrm.is_valid = htonl ((GNUNET_OK == ret) ? GNUNET_NO : GNUNET_YES); |
332 | GNUNET_SERVER_notification_context_add (nc, | 332 | GNUNET_SERVER_notification_context_add (nc, |
333 | client); | 333 | client); |
334 | GNUNET_SERVER_notification_context_unicast (nc, | 334 | GNUNET_SERVER_notification_context_unicast (nc, |