summaryrefslogtreecommitdiffstats
path: root/bin/pax/cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pax/cpio.c')
-rw-r--r--bin/pax/cpio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/pax/cpio.c b/bin/pax/cpio.c
index 2cf93f2..a90ca40 100644
--- a/bin/pax/cpio.c
+++ b/bin/pax/cpio.c
@@ -188,7 +188,7 @@ rd_nm(ARCHD *arcn, int nsz)
/*
* do not even try bogus values
*/
- if ((nsz == 0) || (nsz > sizeof(arcn->name))) {
+ if ((nsz == 0) || (nsz > (int)sizeof(arcn->name))) {
paxwarn(1, "Cpio file name length %d is out of range", nsz);
return(-1);
}
@@ -266,7 +266,7 @@ rd_ln_nm(ARCHD *arcn)
int
cpio_id(char *blk, int size)
{
- if ((size < sizeof(HD_CPIO)) ||
+ if ((size < (int)sizeof(HD_CPIO)) ||
(strncmp(blk, AMAGIC, sizeof(AMAGIC) - 1) != 0))
return(-1);
return(0);
@@ -522,7 +522,7 @@ cpio_wr(ARCHD *arcn)
int
vcpio_id(char *blk, int size)
{
- if ((size < sizeof(HD_VCPIO)) ||
+ if ((size < (int)sizeof(HD_VCPIO)) ||
(strncmp(blk, AVMAGIC, sizeof(AVMAGIC) - 1) != 0))
return(-1);
return(0);
@@ -539,8 +539,8 @@ vcpio_id(char *blk, int size)
int
crc_id(char *blk, int size)
{
- if ((size < sizeof(HD_VCPIO)) ||
- (strncmp(blk, AVCMAGIC, sizeof(AVCMAGIC) - 1) != 0))
+ if ((size < (int)sizeof(HD_VCPIO)) ||
+ (strncmp(blk, AVCMAGIC, (int)sizeof(AVCMAGIC) - 1) != 0))
return(-1);
return(0);
}
@@ -860,7 +860,7 @@ vcpio_wr(ARCHD *arcn)
int
bcpio_id(char *blk, int size)
{
- if (size < sizeof(HD_BCPIO))
+ if (size < (int)sizeof(HD_BCPIO))
return(-1);
/*
OpenPOWER on IntegriCloud