From 8fc776833f83c417d57c43f41479bc034c3863c6 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 8 May 2019 13:22:33 +0200 Subject: portability fixes, some modernization --- readers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'readers.c') diff --git a/readers.c b/readers.c index b7e8899..e94bbcb 100644 --- a/readers.c +++ b/readers.c @@ -3,9 +3,9 @@ #include #include #include -#include #include "readers.h" +#include "byteorder.h" /* ----------------------------------------------------------------------- */ @@ -13,7 +13,7 @@ void load_bits_lsb(unsigned char *dst, unsigned char *src, int width, int on, int off) { int i,mask,bit; - + for (i = 0; i < width; i++) { mask = 1 << (i & 0x07); bit = src[i>>3] & mask; @@ -28,7 +28,7 @@ void load_bits_msb(unsigned char *dst, unsigned char *src, int width, int on, int off) { int i,mask,bit; - + for (i = 0; i < width; i++) { mask = 1 << (7 - (i & 0x07)); bit = src[i>>3] & mask; -- cgit