summaryrefslogtreecommitdiff
path: root/bsd.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-01-19 16:17:20 -0500
committersrs5694 <srs5694@users.sourceforge.net>2010-01-19 16:17:20 -0500
commita6022b0327bb19459c95a0e8242249e00dbcb609 (patch)
tree7a0d360404ff7f4a0ac368b5d74eb227380f7a69 /bsd.cc
parent3c0af38237d0f40aaea8233a5cbfdd030a77817d (diff)
downloadsgdisk-a6022b0327bb19459c95a0e8242249e00dbcb609.tar.gz
Fixed bug that caused BSD disklabel conversion to fail
Diffstat (limited to 'bsd.cc')
-rw-r--r--bsd.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/bsd.cc b/bsd.cc
index b931d35..e1b3907 100644
--- a/bsd.cc
+++ b/bsd.cc
@@ -201,6 +201,12 @@ int BSDData::ShowState(void) {
return retval;
} // BSDData::ShowState()
+// Weirdly, this function has stopped working when defined inline,
+// but it's OK here....
+int BSDData::IsDisklabel(void) {
+ return (state == bsd);
+} // BSDData::IsDiskLabel()
+
// Returns the BSD table's partition type code
uint8_t BSDData::GetType(int i) {
uint8_t retval = 0; // 0 = "unused"