From 08a3b7128e27f474046afa3f78b55df221c59dd9 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Mon, 5 May 2014 15:28:58 +0200 Subject: libopenlmi: minor fixes and improvements --- src/logicalfile/LMI_UnixFileProvider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/logicalfile/LMI_UnixFileProvider.c') 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); -- cgit