summaryrefslogtreecommitdiffstats
path: root/src/handshake.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-17 10:22:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-17 10:22:15 +0200
commit49cb21b22d72169517c8a2137db8bcac883ad2cc (patch)
treebd6461616c4290fbe55e5d45ae70b31efc93b9d6 /src/handshake.h
parent00d7406fe26bbcbad2945a0b4e3666dd991daac4 (diff)
downloadfastd-49cb21b22d72169517c8a2137db8bcac883ad2cc.tar
fastd-49cb21b22d72169517c8a2137db8bcac883ad2cc.zip
Make handshake records const uint8_t* instead of void*
This enforces explicit casting and thus avoids alignment problems.
Diffstat (limited to 'src/handshake.h')
-rw-r--r--src/handshake.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.h b/src/handshake.h
index 1c349da..70a1c6c 100644
--- a/src/handshake.h
+++ b/src/handshake.h
@@ -59,7 +59,7 @@ typedef enum fastd_reply_code {
typedef struct fastd_handshake_record {
size_t length;
- void *data;
+ const uint8_t *data;
} fastd_handshake_record_t;
struct fastd_handshake {