From 958dcdaae75c34c5266c3cbc9868095fa0ff1a26 Mon Sep 17 00:00:00 2001 From: eadler Date: Fri, 20 Jan 2012 01:38:28 +0000 Subject: 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 --- usr.sbin/makefs/cd9660.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c index 65730d6..90ddb60 100644 --- a/usr.sbin/makefs/cd9660.c +++ b/usr.sbin/makefs/cd9660.c @@ -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, int num, int delete_chars) 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, int num, int delete_chars) } */ - dot = -1; - semi = -1; while (count < maxlength) { - if (*naming == '.') - dot = count; - else if (*naming == ';') { - semi = count; - break; - } naming++; count++; } -- cgit v1.1