aboutsummaryrefslogtreecommitdiff
path: root/src/nse
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/nse
parentcbcd55809c1896352f506ebc7252b1044aba476d (diff)
downloadgnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.tar.gz
gnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.zip
-trying to resolve alignment issue on sparc
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index 6a7248cb5..a396cf9cb 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -826,7 +826,7 @@ check_proof_of_work (const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *pkey,
826 uint64_t val) 826 uint64_t val)
827{ 827{
828 char buf[sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) + 828 char buf[sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) +
829 sizeof (val)]; 829 sizeof (val)] GNUNET_ALIGN;
830 GNUNET_HashCode result; 830 GNUNET_HashCode result;
831 831
832 memcpy (buf, &val, sizeof (val)); 832 memcpy (buf, &val, sizeof (val));
@@ -871,7 +871,7 @@ find_proof (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
871#define ROUND_SIZE 10 871#define ROUND_SIZE 10
872 uint64_t counter; 872 uint64_t counter;
873 char buf[sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) + 873 char buf[sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) +
874 sizeof (uint64_t)]; 874 sizeof (uint64_t)] GNUNET_ALIGN;
875 GNUNET_HashCode result; 875 GNUNET_HashCode result;
876 unsigned int i; 876 unsigned int i;
877 877