Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 May 2017 13:09:28 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317937 - in head/usr.sbin/makefs: . cd9660
Message-ID:  <201705081309.v48D9SOE040551@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705081309.v48D9SOE040551>