summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/LMI_UnixFileProvider.c
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2014-05-05 15:28:58 +0200
committerJan Synacek <jsynacek@redhat.com>2014-05-06 08:31:20 +0200
commit08a3b7128e27f474046afa3f78b55df221c59dd9 (patch)
treef59578a238b6086c31904bf925567f96eef0280a /src/logicalfile/LMI_UnixFileProvider.c
parent55f63d29f5d2b4e82979d71386df58394e87ef5a (diff)
downloadopenlmi-providers-08a3b7128e27f474046afa3f78b55df221c59dd9.tar.gz
openlmi-providers-08a3b7128e27f474046afa3f78b55df221c59dd9.tar.xz
openlmi-providers-08a3b7128e27f474046afa3f78b55df221c59dd9.zip
libopenlmi: minor fixes and improvements
Diffstat (limited to 'src/logicalfile/LMI_UnixFileProvider.c')
-rw-r--r--src/logicalfile/LMI_UnixFileProvider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logicalfile/LMI_UnixFileProvider.c b/src/logicalfile/LMI_UnixFileProvider.c
index 52e7b9c..0a92751 100644
--- a/src/logicalfile/LMI_UnixFileProvider.c
+++ b/src/logicalfile/LMI_UnixFileProvider.c
@@ -122,7 +122,7 @@ static CMPIStatus LMI_UnixFileGetInstance(
char *fsname;
char *fsclassname;
- st = lmi_check_required(_cb, cc, cop);
+ st = lmi_check_required_properties(_cb, cc, cop, "CSCreationClassName", "CSName");
if (st.rc != CMPI_RC_OK) {
return st;
}
@@ -140,7 +140,7 @@ static CMPIStatus LMI_UnixFileGetInstance(
fsname = (char *) KChars(lmi_file.FSName.value);
fsclassname = (char *) KChars(lmi_file.FSCreationClassName.value);
st = get_fsinfo_from_stat(_cb, &sb, path, &fsclassname, &fsname);
- lmi_check_status(st);
+ lmi_return_if_status_not_ok(st);
LMI_UnixFile_Set_FSCreationClassName(&lmi_file, fsclassname);
LMI_UnixFile_Set_FSName(&lmi_file, fsname);
get_class_from_stat(&sb, aux);