diff --git a/backuppc/bpc_attrib.c b/backuppc/bpc_attrib.c index 55eab1f..287a191 100644 --- a/backuppc/bpc_attrib.c +++ b/backuppc/bpc_attrib.c @@ -218,7 +218,7 @@ static void bpc_attrib_xattrListKey(bpc_attrib_xattr *xattr, xattrList_info *inf } } if ( info->list ) { - if ( info->idx + xattr->key.keyLen > info->listLen ) { + if ( info->idx + (signed)xattr->key.keyLen > info->listLen ) { info->idx = -1; return; } diff --git a/backuppc/bpc_poolWrite.c b/backuppc/bpc_poolWrite.c index 39c79ca..4050b33 100644 --- a/backuppc/bpc_poolWrite.c +++ b/backuppc/bpc_poolWrite.c @@ -232,7 +232,7 @@ int bpc_poolWrite_write(bpc_poolWrite_info *info, uchar *data, size_t dataLen) info->fdOpen = 1; md5_begin(&info->md5); if ( info->bufferIdx > 0 ) { - if ( (writeRet = bpc_fileZIO_write(&info->fd, info->buffer, info->bufferIdx)) != info->bufferIdx ) { + if ( (writeRet = bpc_fileZIO_write(&info->fd, info->buffer, info->bufferIdx)) != (signed)info->bufferIdx ) { info->errorCnt++; bpc_logErrf("bpc_poolWrite_write: write of %lu bytes to %s failed, return = %d", (unsigned long)info->bufferIdx, info->tmpFileName, (int)writeRet);