twister

HTTP fault injector for testing
Log | Files | Refs | README | LICENSE

commit 3b3908c9d53cf43f01399de86657f4804eb91ca3
parent 70a913cd2639095479291d2d43ee1ce8135e31fc
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 14 Jun 2019 14:58:01 +0200

size_t -> uint16_t

Diffstat:
Msrc/twister/twister_api.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 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",