diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-01-29 17:44:04 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-01-29 17:44:04 -0500 |
commit | e321d444dcca514cf6b53459e388ddcbaab6176c (patch) | |
tree | 7c2c07142193cf2a66a958f59fb35d0ee0ca9ca0 /bsd.cc | |
parent | 0a6973119c9e9984ad47a6da3231e8d16f996c5c (diff) | |
download | sgdisk-e321d444dcca514cf6b53459e388ddcbaab6176c.tar.gz |
Final 0.6.2 release; misc. bug fixes & Windows version
Diffstat (limited to 'bsd.cc')
-rw-r--r-- | bsd.cc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -65,7 +65,7 @@ int BSDData::ReadBSDData(const string & device, uint64_t startSector, uint64_t e // file, starting with the specified sector number. int BSDData::ReadBSDData(DiskIO *theDisk, uint64_t startSector, uint64_t endSector) { uint8_t buffer[4096]; // I/O buffer - int i, err, foundSig = 0, bigEnd = 0, allOK = 1; + int i, foundSig = 0, bigEnd = 0, allOK = 1; int relative = 0; // assume absolute partition sector numbering uint32_t realSig; uint32_t* temp32; @@ -73,7 +73,6 @@ int BSDData::ReadBSDData(DiskIO *theDisk, uint64_t startSector, uint64_t endSect BSDRecord* tempRecords; int offset[NUM_OFFSETS] = { LABEL_OFFSET1, LABEL_OFFSET2 }; -// myDisk = theDisk; labelFirstLBA = startSector; labelLastLBA = endSector; offset[1] = theDisk->GetBlockSize(); @@ -263,7 +262,6 @@ int BSDData::GetNumParts(void) { GPTPart BSDData::AsGPT(int i) { GPTPart guid; // dump data in here, then return it uint64_t sectorOne, sectorEnd; // first & last sectors of partition - char tempStr[NAME_SIZE]; // temporary string for holding GPT name int passItOn = 1; // Set to 0 if partition is empty or invalid guid.BlankPartition(); |