diff options
author | Andy Lester <andy@petdance.com> | 2005-05-30 17:28:36 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-31 09:13:34 +0000 |
commit | 4b31f1384a4da7df10c2175e609a8c1c5216ef1d (patch) | |
tree | c5f7cc2ff3aa46509724206dd7d27521f0a3adf7 /ext/ByteLoader | |
parent | 8b7d8421acfa75c6cba0f3a12f068c4c4766abeb (diff) | |
download | perl-4b31f1384a4da7df10c2175e609a8c1c5216ef1d.tar.gz |
ByteLoader.xs cleanup
Message-ID: <20050531032836.GA32198@petdance.com>
p4raw-id: //depot/perl@24645
Diffstat (limited to 'ext/ByteLoader')
-rw-r--r-- | ext/ByteLoader/ByteLoader.xs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ByteLoader/ByteLoader.xs b/ext/ByteLoader/ByteLoader.xs index e71b7cdb9b..679298e805 100644 --- a/ext/ByteLoader/ByteLoader.xs +++ b/ext/ByteLoader/ByteLoader.xs @@ -45,11 +45,10 @@ bl_read(struct byteloader_fdata *data, char *buf, size_t size, size_t n) len -= data->next_out; if (len) { memmove (start, start + data->next_out, len + 1); - SvCUR_set (data->datasv, len); } else { *start = '\0'; /* Avoid call to memmove. */ - SvCUR_set (data->datasv, 0); } + SvCUR_set(data->datasv, len); data->next_out = 0; /* Attempt to read more data. */ @@ -81,6 +80,8 @@ byteloader_filter(pTHX_ int idx, SV *buf_sv, int maxlen) struct byteloader_state bstate; struct byteloader_fdata data; int len; + (void)buf_sv; + (void)maxlen; data.next_out = 0; data.datasv = FILTER_DATA(idx); |