Minor bug fixes
diff --git a/gpt.cc b/gpt.cc
index 76aaace..269e09b 100644
--- a/gpt.cc
+++ b/gpt.cc
@@ -968,11 +968,9 @@
 // Writes GPT (and protective MBR) to disk. If quiet==1, 
 // Returns 1 on successful write, 0 if there was a problem.
 int GPTData::SaveGPTData(int quiet) {
-   int allOK = 1, littleEndian;
+   int allOK = 1;
    char answer;
 
-   littleEndian = IsLittleEndian();
-
    // First do some final sanity checks....
 
    // This test should only fail on read-only disks....
@@ -1172,14 +1170,10 @@
 // set of partitions.
 int GPTData::LoadGPTBackup(const string & filename) {
    int allOK = 1, val, err;
-   uint32_t sizeOfEntries;
-   int littleEndian = 1, shortBackup = 0;
+   int shortBackup = 0;
    DiskIO backupFile;
 
    if (backupFile.OpenForRead(filename)) {
-      if (IsLittleEndian() == 0)
-         littleEndian = 0;
-
       // Let the MBRData class load the saved MBR...
       protectiveMBR.ReadMBRData(&backupFile, 0); // 0 = don't check block size
       protectiveMBR.SetDisk(&myDisk);
@@ -1207,10 +1201,8 @@
       if ((val = CheckHeaderValidity()) > 0) {
          if (val == 2) { // only backup header seems to be good
             SetGPTSize(secondHeader.numParts);
-            sizeOfEntries = secondHeader.sizeOfPartitionEntries;
          } else { // main header is OK
             SetGPTSize(mainHeader.numParts);
-            sizeOfEntries = mainHeader.sizeOfPartitionEntries;
          } // if/else
 
          if (secondHeader.currentLBA != diskSize - UINT64_C(1)) {