summaryrefslogtreecommitdiff
path: root/lib/gnutls_range.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-25 21:27:05 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-25 21:27:05 +0100
commitc73b48d83fb3f07bbf3380070aad4bef94562660 (patch)
tree9acb0eb86623e8f278d15d32ce6e9103ed2ce49d /lib/gnutls_range.c
parente7f1c63f7ed88c6efb6703a69a84b57223ba4158 (diff)
downloadgnutls-c73b48d83fb3f07bbf3380070aad4bef94562660.tar.gz
gnutls_range_split accepts pointers as arguments.
Diffstat (limited to 'lib/gnutls_range.c')
-rw-r--r--lib/gnutls_range.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_range.c b/lib/gnutls_range.c
index 8448843633..536f077dce 100644
--- a/lib/gnutls_range.c
+++ b/lib/gnutls_range.c
@@ -155,14 +155,14 @@ gnutls_record_can_use_length_hiding (gnutls_session_t session)
*/
ssize_t
gnutls_range_split (gnutls_session_t session,
- const gnutls_range_st orig,
+ const gnutls_range_st *orig,
gnutls_range_st * small_range,
gnutls_range_st * rem_range)
{
int ret;
ssize_t max_frag = MAX_USER_SEND_SIZE (session);
- ssize_t orig_low = (ssize_t) orig.low;
- ssize_t orig_high = (ssize_t) orig.high;
+ ssize_t orig_low = (ssize_t) orig->low;
+ ssize_t orig_high = (ssize_t) orig->high;
if (orig_high == orig_low)
{
@@ -256,7 +256,7 @@ gnutls_record_send_range (gnutls_session_t session, const void *data,
while (cur_range.high != 0)
{
ret =
- gnutls_range_split (session, cur_range, &cur_range,
+ gnutls_range_split (session, &cur_range, &cur_range,
&next_range);
if (ret < 0)
{