diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-28 15:24:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-28 15:24:59 +0000 |
commit | a55b2de0863937cfe9c0fcbf41882b81f4c82c9c (patch) | |
tree | a67b31d91012d6333de2541a91fb6c15ce32e22b /src/hello/hello.c | |
parent | b3883971cd31d198dbd768fffb15960dff0352a6 (diff) | |
download | gnunet-a55b2de0863937cfe9c0fcbf41882b81f4c82c9c.tar.gz gnunet-a55b2de0863937cfe9c0fcbf41882b81f4c82c9c.zip |
change type
Diffstat (limited to 'src/hello/hello.c')
-rw-r--r-- | src/hello/hello.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hello/hello.c b/src/hello/hello.c index 066c03d87..3f0f9dd54 100644 --- a/src/hello/hello.c +++ b/src/hello/hello.c | |||
@@ -111,11 +111,11 @@ struct GNUNET_HELLO_ParseUriContext | |||
111 | */ | 111 | */ |
112 | 112 | ||
113 | uint16_t | 113 | uint16_t |
114 | GNUNET_HELLO_get_type (const struct GNUNET_MessageHeader *h) | 114 | GNUNET_HELLO_get_type (const struct GNUNET_HELLO_Message *h) |
115 | { | 115 | { |
116 | if (GNUNET_MESSAGE_TYPE_HELLO == ntohs(h->type)) | 116 | if (GNUNET_MESSAGE_TYPE_HELLO == ntohs(h->header.type)) |
117 | return GNUNET_MESSAGE_TYPE_HELLO; | 117 | return GNUNET_MESSAGE_TYPE_HELLO; |
118 | if (GNUNET_MESSAGE_TYPE_FRIEND_HELLO == ntohs(h->type)) | 118 | if (GNUNET_MESSAGE_TYPE_FRIEND_HELLO == ntohs(h->header.type)) |
119 | return GNUNET_MESSAGE_TYPE_FRIEND_HELLO; | 119 | return GNUNET_MESSAGE_TYPE_FRIEND_HELLO; |
120 | return 0; | 120 | return 0; |
121 | } | 121 | } |