Re: [PATCH v7 2/7] read-cache: clean up casting and byte decoding

2018-10-01 Thread Duy Nguyen
On Mon, Oct 1, 2018 at 3:46 PM Ben Peart wrote: > > From: Ben Peart > > This patch does a clean up pass to minimize the casting required to work > with the memory mapped index (mmap). > > It also makes the decoding of network byte order more consistent by using > get_be32() where possible. > >

[PATCH v7 2/7] read-cache: clean up casting and byte decoding

2018-10-01 Thread Ben Peart
From: Ben Peart This patch does a clean up pass to minimize the casting required to work with the memory mapped index (mmap). It also makes the decoding of network byte order more consistent by using get_be32() where possible. Signed-off-by: Ben Peart --- read-cache.c | 23