diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:40:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:40:15 +0000 |
commit | c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac (patch) | |
tree | 02e313a83c4416f07fadf650d33aff09dfe46130 /src/dv/dv.h | |
parent | 40e5092e9a5db88b4c9b62cb341596fbf6ce1cf8 (diff) | |
download | gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.tar.gz gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.zip |
fixing 2012: network structure alignment now forced to be correct even on W32 using #pragma pack from gcc 4.x
Diffstat (limited to 'src/dv/dv.h')
-rw-r--r-- | src/dv/dv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dv/dv.h b/src/dv/dv.h index 5690cf6cc..0d42505bc 100644 --- a/src/dv/dv.h +++ b/src/dv/dv.h | |||
@@ -44,6 +44,8 @@ typedef void (*GNUNET_DV_MessageReceivedHandler) (void *cls, | |||
44 | char *sender_address, | 44 | char *sender_address, |
45 | size_t sender_address_len); | 45 | size_t sender_address_len); |
46 | 46 | ||
47 | GNUNET_NETWORK_STRUCT_BEGIN | ||
48 | |||
47 | /** | 49 | /** |
48 | * DV Message, contains a message that was received | 50 | * DV Message, contains a message that was received |
49 | * via DV for this peer! Internal. | 51 | * via DV for this peer! Internal. |
@@ -255,7 +257,7 @@ typedef struct | |||
255 | uint32_t peer_id GNUNET_PACKED; | 257 | uint32_t peer_id GNUNET_PACKED; |
256 | 258 | ||
257 | } p2p_dv_MESSAGE_Disconnect; | 259 | } p2p_dv_MESSAGE_Disconnect; |
258 | 260 | GNUNET_NETWORK_STRUCT_END | |
259 | 261 | ||
260 | struct GNUNET_DV_Handle * | 262 | struct GNUNET_DV_Handle * |
261 | GNUNET_DV_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | 263 | GNUNET_DV_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, |