Use my_min() instead of MIN() in src/xz/list.c
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 27 May 2010 07:31:33 +0000 (02:31 -0500)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 27 May 2010 10:30:48 +0000 (13:30 +0300)
This should have been done in
920a69a8d8e4203c5edddd829d932130eac188ea.

src/xz/list.c

index 91707b9..3de838c 100644 (file)
@@ -156,7 +156,7 @@ parse_indexes(lzma_index **idx, file_pair *pair)
                do {
                        // Don't give the decoder more input than the
                        // Index size.
-                       strm.avail_in = MIN(IO_BUFFER_SIZE, index_size);
+                       strm.avail_in = my_min(IO_BUFFER_SIZE, index_size);
                        if (io_pread(pair, &buf, strm.avail_in, pos))
                                goto error;