[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] branch master updated: size_t -> uint16_t
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] branch master updated: size_t -> uint16_t |
Date: |
Fri, 14 Jun 2019 14:58:08 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
The following commit(s) were added to refs/heads/master by this push:
new 3b3908c size_t -> uint16_t
3b3908c is described below
commit 3b3908c9d53cf43f01399de86657f4804eb91ca3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jun 14 14:58:01 2019 +0200
size_t -> uint16_t
---
src/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
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",
--
To stop receiving notification emails like this one, please contact
address@hidden.