summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/cio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/openjp2/cio.c')
-rw-r--r--src/lib/openjp2/cio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/cio.c b/src/lib/openjp2/cio.c
index c6f778c9..b2f6405f 100644
--- a/src/lib/openjp2/cio.c
+++ b/src/lib/openjp2/cio.c
@@ -302,7 +302,7 @@ OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_bu
p_stream->m_current_data = p_stream->m_stored_data;
}
- while(1){
+ for (;;) {
/* we should read less than a chunk -> read a chunk */
if (p_size < p_stream->m_buffer_size) {
/* we should do an actual read on the media */
@@ -382,7 +382,7 @@ OPJ_SIZE_T opj_stream_write_data (opj_stream_private_t * p_stream,
return (OPJ_SIZE_T)-1;
}
- while(1) {
+ for (;;) {
l_remaining_bytes = p_stream->m_buffer_size - p_stream->m_bytes_in_buffer;
/* we have more memory than required */