Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 01:38:28 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230354 - head/usr.sbin/makefs
Message-ID:  <201201200138.q0K1cSou016739@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jan 20 01:38:28 2012
New Revision: 230354
URL: http://svn.freebsd.org/changeset/base/230354

Log:
  Fix a variety of warnings when compiling with gcc46
  
  Approved by:	dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
  MFC after:	3 days

Modified:
  head/usr.sbin/makefs/cd9660.c

Modified: head/usr.sbin/makefs/cd9660.c
==============================================================================
--- head/usr.sbin/makefs/cd9660.c	Fri Jan 20 01:38:21 2012	(r230353)
+++ head/usr.sbin/makefs/cd9660.c	Fri Jan 20 01:38:28 2012	(r230354)
@@ -1049,7 +1049,7 @@ static cd9660node *
 cd9660_rename_filename(cd9660node *iter, int num, int delete_chars)
 {
 	int i = 0;
-	int numbts, dot, semi, digit, digits, temp, powers, multiplier, count;
+	int numbts, digit, digits, temp, powers, count;
 	char *naming;
 	int maxlength;
         char *tmp;
@@ -1071,7 +1071,6 @@ cd9660_rename_filename(cd9660node *iter,
 		powers = 1;
 		count = 0;
 		digits = 1;
-		multiplier = 1;
 		while (((int)(i / powers) ) >= 10) {
 			digits++;
 			powers = powers * 10;
@@ -1086,15 +1085,7 @@ cd9660_rename_filename(cd9660node *iter,
 		}
 		*/
 
-		dot = -1;
-		semi = -1;
 		while (count < maxlength) {
-			if (*naming == '.')
-				dot = count;
-			else if (*naming == ';') {
-				semi = count;
-				break;
-			}
 			naming++;
 			count++;
 		}



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