makefs: use size_t as appropriate to clean up warnings

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2017-05-08 13:09:27 +00:00
parent bd274cceae
commit 856d87c5af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317937
2 changed files with 4 additions and 4 deletions

View File

@ -224,7 +224,7 @@ cd9660_boot_setup_validation_entry(char sys)
boot_catalog_validation_entry *ve;
int16_t checksum;
unsigned char *csptr;
int i;
size_t i;
entry = cd9660_init_boot_catalog_entry();
ve = &entry->entry_data.VE;

View File

@ -621,7 +621,7 @@ ffs_size_dir(fsnode *root, fsinfo_t *fsopts)
if (node->type == S_IFREG)
ADDSIZE(node->inode->st.st_size);
if (node->type == S_IFLNK) {
int slen;
size_t slen;
slen = strlen(node->symlink) + 1;
if (slen >= (ffs_opts->version == 1 ?
@ -644,7 +644,7 @@ static void *
ffs_build_dinode1(struct ufs1_dinode *dinp, dirbuf_t *dbufp, fsnode *cur,
fsnode *root, fsinfo_t *fsopts)
{
int slen;
size_t slen;
void *membuf;
struct stat *st = stampst.st_ino != 0 ? &stampst : &cur->inode->st;
@ -692,7 +692,7 @@ static void *
ffs_build_dinode2(struct ufs2_dinode *dinp, dirbuf_t *dbufp, fsnode *cur,
fsnode *root, fsinfo_t *fsopts)
{
int slen;
size_t slen;
void *membuf;
struct stat *st = stampst.st_ino != 0 ? &stampst : &cur->inode->st;