summaryrefslogtreecommitdiff
path: root/gptpart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gptpart.cc')
-rw-r--r--gptpart.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gptpart.cc b/gptpart.cc
index 29b2df9..40c426c 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -72,8 +72,6 @@ string GPTPart::GetName(void) {
// name *IF* the current name is the generic one for the current partition
// type.
void GPTPart::SetType(struct GUIDData t) {
- int nameSame = 1, currentLength, i;
-
if (GetName() == typeHelper.GUIDToName(partitionType)) {
SetName(typeHelper.GUIDToName(t));
} // if
@@ -157,7 +155,7 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) {
cout.width(14);
cout << lastLBA << " ";
cout << BytesToSI(blockSize * (lastLBA - firstLBA + 1)) << " ";
- for (i = 0; i < 9 - sizeInSI.length(); i++) cout << " ";
+ for (i = 0; i < 9 - (int) sizeInSI.length(); i++) cout << " ";
cout.fill('0');
cout.width(4);
cout.setf(ios::uppercase);