From 678c38d2729cd86297c2aedfae1538d1991cb94b Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Tue, 27 Aug 2013 10:35:43 +0200 Subject: logicalfile: make uses of strcmp() more readable --- src/logicalfile/file.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/logicalfile/file.c') diff --git a/src/logicalfile/file.c b/src/logicalfile/file.c index 74be931..e6968de 100644 --- a/src/logicalfile/file.c +++ b/src/logicalfile/file.c @@ -34,7 +34,7 @@ CMPIStatus lmi_check_required( goto done; } prop = get_string_property_from_op(o, "CSCreationClassName"); - if (strcmp(prop, lmi_get_system_creation_class_name())) { + if (strcmp(prop, lmi_get_system_creation_class_name()) != 0) { errmsg = "Wrong CSCreationClassName"; goto done; } @@ -45,7 +45,7 @@ CMPIStatus lmi_check_required( goto done; } prop = get_string_property_from_op(o, "CSName"); - if (strcmp(prop, lmi_get_system_name())) { + if (strcmp(prop, lmi_get_system_name()) != 0) { errmsg = "Wrong CSName"; goto done; } @@ -62,7 +62,7 @@ CMPIStatus lmi_check_required( errmsg = "Can't get class from path"; goto done; } - if (strcmp(prop, fileclass)) { + if (strcmp(prop, fileclass) != 0) { errmsg = "LFCreationClassName doesn't match the file's type"; goto done; } @@ -104,7 +104,7 @@ CMPIStatus lmi_check_required( goto done; } prop = get_string_property_from_op(o, "FSCreationClassName"); - if (strcmp(prop, FSCREATIONCLASSNAME)) { + if (strcmp(prop, FSCREATIONCLASSNAME) != 0) { errmsg = "Wrong FSCreationClassName"; goto done; } @@ -114,7 +114,7 @@ CMPIStatus lmi_check_required( goto done; } prop = get_string_property_from_op(o, "FSName"); - if (strcmp(prop, path)) { + if (strcmp(prop, path) != 0) { errmsg = "Wrong FSName"; goto done; } -- cgit