summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-20 01:38:28 +0000
committereadler <eadler@FreeBSD.org>2012-01-20 01:38:28 +0000
commit958dcdaae75c34c5266c3cbc9868095fa0ff1a26 (patch)
tree83db942c3277eca55bb4e8e44dcd1c92ec945ab0 /usr.sbin/makefs
parentb9b0c09168db56c83e3238d740f795e5082edb24 (diff)
downloadFreeBSD-src-958dcdaae75c34c5266c3cbc9868095fa0ff1a26.zip
FreeBSD-src-958dcdaae75c34c5266c3cbc9868095fa0ff1a26.tar.gz
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
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r--usr.sbin/makefs/cd9660.c11
1 files changed, 1 insertions, 10 deletions
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++;
}
OpenPOWER on IntegriCloud