summaryrefslogtreecommitdiff
path: root/bsd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'bsd.cc')
-rw-r--r--bsd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsd.cc b/bsd.cc
index 1db68ea..88c25d0 100644
--- a/bsd.cc
+++ b/bsd.cc
@@ -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;