diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-14 14:58:01 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-14 14:58:01 +0200 |
commit | 3b3908c9d53cf43f01399de86657f4804eb91ca3 (patch) | |
tree | cfd44ec7535d8d314f823826a62100158b4d5e5b | |
parent | 70a913cd2639095479291d2d43ee1ce8135e31fc (diff) | |
download | twister-3b3908c9d53cf43f01399de86657f4804eb91ca3.tar.gz twister-3b3908c9d53cf43f01399de86657f4804eb91ca3.tar.bz2 twister-3b3908c9d53cf43f01399de86657f4804eb91ca3.zip |
size_t -> uint16_t
-rw-r--r-- | src/twister/twister_api.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/twister/twister_api.c b/src/twister/twister_api.c index 8b12113..330e6f1 100644 --- a/src/twister/twister_api.c +++ b/src/twister/twister_api.c @@ -323,7 +323,7 @@ TALER_TWISTER_flip_download struct TALER_TWISTER_Operation *op; struct GNUNET_MQ_Envelope *env; struct TWISTER_FlipPath *src; //FIXME 'src' right name? - size_t stralloc; + uint16_t stralloc; uint16_t size; op = GNUNET_new (struct TALER_TWISTER_Operation); @@ -335,6 +335,8 @@ TALER_TWISTER_flip_download op); stralloc = strlen (path) + 1; size = sizeof (*src) + stralloc; + + GNUNET_assert (size < UINT16_MAX); env = GNUNET_MQ_msg_extra (src, size, TWISTER_MESSAGE_TYPE_FLIP_PATH_DL); @@ -373,8 +375,8 @@ TALER_TWISTER_flip_upload struct TALER_TWISTER_Operation *op; struct GNUNET_MQ_Envelope *env; struct TWISTER_FlipPath *src; //FIXME 'src' right name? - size_t size; - size_t stralloc = strlen (path) + 1; + uint16_t size; + uint16_t stralloc = strlen (path) + 1; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Will UL-flip: %s\n", |