aboutsummaryrefslogtreecommitdiffstats
path: root/com32/chain/utility.c
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2013-02-14 16:51:45 +0100
committerMichal Soltys <soltys@ziu.info>2013-02-14 16:53:04 +0100
commitef9308f5b855b4b5c6484bd959c0334111908a44 (patch)
treed1aaa5f7158bb12b04067baf845caac0e24943a3 /com32/chain/utility.c
parentefcb57e2bec24c3a88bafe599f33e47f5f11069b (diff)
downloadsyslinux-ef9308f5b855b4b5c6484bd959c0334111908a44.tar.gz
syslinux-ef9308f5b855b4b5c6484bd959c0334111908a44.tar.xz
syslinux-ef9308f5b855b4b5c6484bd959c0334111908a44.zip
com32/chain: mangle and related updates
Comments, output and minor adjustments. Signed-off-by: Michal Soltys <soltys@ziu.info>
Diffstat (limited to 'com32/chain/utility.c')
-rw-r--r--com32/chain/utility.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/com32/chain/utility.c b/com32/chain/utility.c
index 18dbbc6d..d0da9f8f 100644
--- a/com32/chain/utility.c
+++ b/com32/chain/utility.c
@@ -166,14 +166,13 @@ fail:
}
/* drive offset detection */
-int drvoff_detect(int type, unsigned int *off)
+int drvoff_detect(int type)
{
if (bpbV40 <= type && type <= bpbVNT) {
- *off = 0x24;
+ return 0x24;
} else if (type == bpbV70) {
- *off = 0x40;
- } else
- return 0;
+ return 0x40;
+ }
return -1;
}