diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-24 14:47:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-24 14:47:24 +0000 |
commit | b9a3fbdc52b32aa6bd27941aba76da528f4e0669 (patch) | |
tree | ba48df589a0a669fda1720d8ac036e0245c28490 /src/peerinfo/gnunet-service-peerinfo.c | |
parent | cbcd55809c1896352f506ebc7252b1044aba476d (diff) | |
download | gnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.tar.gz gnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.zip |
-trying to resolve alignment issue on sparc
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index 790c57b37..df3486ea0 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -185,7 +185,7 @@ notify_all (struct HostEntry *entry) | |||
185 | static struct GNUNET_HELLO_Message * | 185 | static struct GNUNET_HELLO_Message * |
186 | read_host_file (const char *fn) | 186 | read_host_file (const char *fn) |
187 | { | 187 | { |
188 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; | 188 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; |
189 | const struct GNUNET_HELLO_Message *hello; | 189 | const struct GNUNET_HELLO_Message *hello; |
190 | struct GNUNET_HELLO_Message *hello_clean; | 190 | struct GNUNET_HELLO_Message *hello_clean; |
191 | int size; | 191 | int size; |
@@ -425,7 +425,7 @@ add_to_tc (void *cls, const GNUNET_HashCode * key, void *value) | |||
425 | struct HostEntry *pos = value; | 425 | struct HostEntry *pos = value; |
426 | struct InfoMessage *im; | 426 | struct InfoMessage *im; |
427 | uint16_t hs; | 427 | uint16_t hs; |
428 | char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; | 428 | char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; |
429 | 429 | ||
430 | hs = 0; | 430 | hs = 0; |
431 | im = (struct InfoMessage *) buf; | 431 | im = (struct InfoMessage *) buf; |
@@ -457,7 +457,7 @@ static int | |||
457 | discard_hosts_helper (void *cls, const char *fn) | 457 | discard_hosts_helper (void *cls, const char *fn) |
458 | { | 458 | { |
459 | struct GNUNET_TIME_Absolute *now = cls; | 459 | struct GNUNET_TIME_Absolute *now = cls; |
460 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; | 460 | char buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; |
461 | const struct GNUNET_HELLO_Message *hello; | 461 | const struct GNUNET_HELLO_Message *hello; |
462 | struct GNUNET_HELLO_Message *new_hello; | 462 | struct GNUNET_HELLO_Message *new_hello; |
463 | int size; | 463 | int size; |