summaryrefslogtreecommitdiff
path: root/cgpt/cgpt_legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgpt/cgpt_legacy.c')
-rw-r--r--cgpt/cgpt_legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgpt/cgpt_legacy.c b/cgpt/cgpt_legacy.c
index e51495ad..89b33e6a 100644
--- a/cgpt/cgpt_legacy.c
+++ b/cgpt/cgpt_legacy.c
@@ -21,8 +21,8 @@ int CgptLegacy(CgptLegacyParams *params) {
params->drive_size))
return CGPT_FAILED;
- if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) {
- Error("GptSanityCheck() returned %d: %s\n",
+ if (GPT_SUCCESS != (gpt_retval = GptValidityCheck(&drive.gpt))) {
+ Error("GptValidityCheck() returned %d: %s\n",
gpt_retval, GptError(gpt_retval));
goto bad;
}