Message ID | 20240430124316.1714467-2-Michael.Glembotzki@iris-sensing.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/3] stream_interface: Fix 16kB issue on save_stream | expand |
On 30.04.24 14:43, Michael Glembotzki wrote: > Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> > --- > core/cpio_utils.c | 2 -- > include/cpiohdr.h | 2 ++ > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/core/cpio_utils.c b/core/cpio_utils.c > index 7948dc2d..87847981 100644 > --- a/core/cpio_utils.c > +++ b/core/cpio_utils.c > @@ -31,8 +31,6 @@ > > #define BUFF_SIZE 16384 > > -#define NPAD_BYTES(o) ((4 - (o % 4)) % 4) > - > typedef enum { > INPUT_FROM_FD, > INPUT_FROM_MEMORY > diff --git a/include/cpiohdr.h b/include/cpiohdr.h > index c909af94..b694de5e 100644 > --- a/include/cpiohdr.h > +++ b/include/cpiohdr.h > @@ -29,6 +29,8 @@ > #define CPIO_NEWASCII 070701 > #define CPIO_CRCASCII 070702 > > +#define NPAD_BYTES(o) ((4 - (o % 4)) % 4) > + > struct new_ascii_header > { > char c_magic[6]; Reviewed-by: Stefano Babic <stefano.babic@swupdate.org>
diff --git a/core/cpio_utils.c b/core/cpio_utils.c index 7948dc2d..87847981 100644 --- a/core/cpio_utils.c +++ b/core/cpio_utils.c @@ -31,8 +31,6 @@ #define BUFF_SIZE 16384 -#define NPAD_BYTES(o) ((4 - (o % 4)) % 4) - typedef enum { INPUT_FROM_FD, INPUT_FROM_MEMORY diff --git a/include/cpiohdr.h b/include/cpiohdr.h index c909af94..b694de5e 100644 --- a/include/cpiohdr.h +++ b/include/cpiohdr.h @@ -29,6 +29,8 @@ #define CPIO_NEWASCII 070701 #define CPIO_CRCASCII 070702 +#define NPAD_BYTES(o) ((4 - (o % 4)) % 4) + struct new_ascii_header { char c_magic[6];
Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> --- core/cpio_utils.c | 2 -- include/cpiohdr.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)