summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/file.c
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2013-08-27 10:35:43 +0200
committerJan Synacek <jsynacek@redhat.com>2013-08-27 10:36:12 +0200
commit678c38d2729cd86297c2aedfae1538d1991cb94b (patch)
treead3b425ffa21c2fd25ba174c541802ae5aeecbda /src/logicalfile/file.c
parent887757fa17cbda7a7bcef394bb5692b6b272c7c1 (diff)
downloadopenlmi-providers-678c38d2729cd86297c2aedfae1538d1991cb94b.tar.gz
openlmi-providers-678c38d2729cd86297c2aedfae1538d1991cb94b.tar.xz
openlmi-providers-678c38d2729cd86297c2aedfae1538d1991cb94b.zip
logicalfile: make uses of strcmp() more readable
Diffstat (limited to 'src/logicalfile/file.c')
-rw-r--r--src/logicalfile/file.c10
1 files changed, 5 insertions, 5 deletions
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;
}