diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-08-24 18:29:41 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-08-24 18:29:41 +0000 |
commit | 7b9618d4bb1b6bf38877b9b85ad29b4595923c46 (patch) | |
tree | b74535d2ce0c0ee5ed3af179eac5ba320cab95c2 /src/peerstore/peerstore.h | |
parent | 1b51c48808587b91655e5798bb81d550c3b2f1a8 (diff) | |
download | gnunet-7b9618d4bb1b6bf38877b9b85ad29b4595923c46.tar.gz gnunet-7b9618d4bb1b6bf38877b9b85ad29b4595923c46.zip |
peerstore: minor fixes
Diffstat (limited to 'src/peerstore/peerstore.h')
-rw-r--r-- | src/peerstore/peerstore.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peerstore/peerstore.h b/src/peerstore/peerstore.h index 94970d906..ef134feef 100644 --- a/src/peerstore/peerstore.h +++ b/src/peerstore/peerstore.h | |||
@@ -44,7 +44,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
44 | /** | 44 | /** |
45 | * #GNUNET_YES if peer id value set, #GNUNET_NO otherwise | 45 | * #GNUNET_YES if peer id value set, #GNUNET_NO otherwise |
46 | */ | 46 | */ |
47 | uint16_t peer_set; | 47 | uint16_t peer_set GNUNET_PACKED; |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Peer Identity | 50 | * Peer Identity |
@@ -55,30 +55,30 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
55 | * Size of the sub_system string | 55 | * Size of the sub_system string |
56 | * Allocated at position 0 after this struct | 56 | * Allocated at position 0 after this struct |
57 | */ | 57 | */ |
58 | size_t sub_system_size; | 58 | uint16_t sub_system_size GNUNET_PACKED; |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * Size of the key string | 61 | * Size of the key string |
62 | * Allocated at position 1 after this struct | 62 | * Allocated at position 1 after this struct |
63 | */ | 63 | */ |
64 | size_t key_size; | 64 | uint16_t key_size GNUNET_PACKED; |
65 | 65 | ||
66 | /** | 66 | /** |
67 | * Size of value blob | 67 | * Size of value blob |
68 | * Allocated at position 2 after this struct | 68 | * Allocated at position 2 after this struct |
69 | */ | 69 | */ |
70 | size_t value_size; | 70 | uint16_t value_size GNUNET_PACKED; |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * Expiry time of entry | 73 | * Expiry time of entry |
74 | */ | 74 | */ |
75 | struct GNUNET_TIME_Absolute expiry; | 75 | struct GNUNET_TIME_Absolute expiry GNUNET_PACKED; |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Options, needed only in case of a | 78 | * Options, needed only in case of a |
79 | * store operation | 79 | * store operation |
80 | */ | 80 | */ |
81 | enum GNUNET_PEERSTORE_StoreOption options; | 81 | enum GNUNET_PEERSTORE_StoreOption options GNUNET_PACKED; |
82 | 82 | ||
83 | }; | 83 | }; |
84 | 84 | ||