aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-16 11:10:10 +0200
committerMattias Andrée <maandree@kth.se>2016-07-16 11:10:10 +0200
commit73f545ac0fa167aa71b1d0f78de533cf4d5978ef (patch)
tree4942d780580622c65e276d3cfb50a1aa5274dd3e /src/message.h
parentm (diff)
downloadcoopgammad-73f545ac0fa167aa71b1d0f78de533cf4d5978ef.tar.gz
coopgammad-73f545ac0fa167aa71b1d0f78de533cf4d5978ef.tar.bz2
coopgammad-73f545ac0fa167aa71b1d0f78de533cf4d5978ef.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/message.h')
-rw-r--r--src/message.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/message.h b/src/message.h
index 24afec1..d6447f1 100644
--- a/src/message.h
+++ b/src/message.h
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stddef.h>
+#include <limits.h>
@@ -73,6 +74,10 @@ struct message
* 0 while reading headers, 1 while reading payload, and 2 when done (internal data)
*/
int stage;
+
+#if INT_MAX != LONG_MAX
+ int padding__;
+#endif
};