aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-24 14:47:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-24 14:47:24 +0000
commitb9a3fbdc52b32aa6bd27941aba76da528f4e0669 (patch)
treeba48df589a0a669fda1720d8ac036e0245c28490 /src/core
parentcbcd55809c1896352f506ebc7252b1044aba476d (diff)
downloadgnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.tar.gz
gnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.zip
-trying to resolve alignment issue on sparc
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core_clients.c4
-rw-r--r--src/core/gnunet-service-core_kx.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 621f8604a..c8e1199b7 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -694,7 +694,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
694{ 694{
695 struct ConnectNotifyMessage *cnm; 695 struct ConnectNotifyMessage *cnm;
696 size_t size; 696 size_t size;
697 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; 697 char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN;
698 struct GNUNET_ATS_Information *a; 698 struct GNUNET_ATS_Information *a;
699 struct DisconnectNotifyMessage dcm; 699 struct DisconnectNotifyMessage dcm;
700 int old_match; 700 int old_match;
@@ -813,7 +813,7 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
813 size_t size = 813 size_t size =
814 msize + sizeof (struct NotifyTrafficMessage) + 814 msize + sizeof (struct NotifyTrafficMessage) +
815 atsi_count * sizeof (struct GNUNET_ATS_Information); 815 atsi_count * sizeof (struct GNUNET_ATS_Information);
816 char buf[size]; 816 char buf[size] GNUNET_ALIGN;
817 struct NotifyTrafficMessage *ntm; 817 struct NotifyTrafficMessage *ntm;
818 struct GNUNET_ATS_Information *a; 818 struct GNUNET_ATS_Information *a;
819 819
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c
index 0cc3521ac..798c114a4 100644
--- a/src/core/gnunet-service-core_kx.c
+++ b/src/core/gnunet-service-core_kx.c
@@ -1458,7 +1458,7 @@ GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx,
1458 struct GNUNET_CRYPTO_AuthKey auth_key; 1458 struct GNUNET_CRYPTO_AuthKey auth_key;
1459 struct DeliverMessageContext dmc; 1459 struct DeliverMessageContext dmc;
1460 uint16_t size = ntohs (msg->size); 1460 uint16_t size = ntohs (msg->size);
1461 char buf[size]; 1461 char buf[size] GNUNET_ALIGN;
1462 1462
1463 if (size < 1463 if (size <
1464 sizeof (struct EncryptedMessage) + sizeof (struct GNUNET_MessageHeader)) 1464 sizeof (struct EncryptedMessage) + sizeof (struct GNUNET_MessageHeader))