diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-01-28 21:10:52 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-01-28 21:10:52 -0500 |
commit | 0a6973119c9e9984ad47a6da3231e8d16f996c5c (patch) | |
tree | 456b81b56315eca6ac64688db34cbb0a25a87f41 /bsd.cc | |
parent | 91544e13fb56ef339277a8f73f761ff004b2e74f (diff) | |
download | sgdisk-0a6973119c9e9984ad47a6da3231e8d16f996c5c.tar.gz |
Nearing 0.6.2 release; Windows version now works.
Diffstat (limited to 'bsd.cc')
-rw-r--r-- | bsd.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -43,12 +43,12 @@ BSDData::~BSDData(void) { // Read BSD disklabel data from the specified device filename. This function // just opens the device file and then calls an overloaded function to do // the bulk of the work. Returns 1 on success, 0 on failure. -int BSDData::ReadBSDData(string *device, uint64_t startSector, uint64_t endSector) { +int BSDData::ReadBSDData(const string & device, uint64_t startSector, uint64_t endSector) { int allOK = 1; DiskIO myDisk; - if (*device != "") { - if (myDisk.OpenForRead(*device)) { + if (device != "") { + if (myDisk.OpenForRead(device)) { allOK = ReadBSDData(&myDisk, startSector, endSector); } else { allOK = 0; |