svn commit: r317937 - in head/usr.sbin/makefs: . cd9660
Ed Maste
emaste at FreeBSD.org
Mon May 8 13:09:29 UTC 2017
Author: emaste
Date: Mon May 8 13:09:27 2017
New Revision: 317937
URL: https://svnweb.freebsd.org/changeset/base/317937
Log:
makefs: use size_t as appropriate to clean up warnings
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/makefs/cd9660/cd9660_eltorito.c
head/usr.sbin/makefs/ffs.c
Modified: head/usr.sbin/makefs/cd9660/cd9660_eltorito.c
==============================================================================
--- head/usr.sbin/makefs/cd9660/cd9660_eltorito.c Mon May 8 10:51:30 2017 (r317936)
+++ head/usr.sbin/makefs/cd9660/cd9660_eltorito.c Mon May 8 13:09:27 2017 (r317937)
@@ -224,7 +224,7 @@ cd9660_boot_setup_validation_entry(char
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;
Modified: head/usr.sbin/makefs/ffs.c
==============================================================================
--- head/usr.sbin/makefs/ffs.c Mon May 8 10:51:30 2017 (r317936)
+++ head/usr.sbin/makefs/ffs.c Mon May 8 13:09:27 2017 (r317937)
@@ -621,7 +621,7 @@ ffs_size_dir(fsnode *root, fsinfo_t *fso
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;
More information about the svn-src-head
mailing list