From 55106801019ed9396f6270840c91bd755556c252 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 5 Mar 2023 10:12:56 -0600 Subject: [PATCH] Cleanup: Return F_exists_not for owner and group to id get function. Update the documentation comments appropriately. Remove F_exists_not documentation comment from the mode id get function. --- level_3/fake/c/private-make.c | 4 ++-- level_3/fake/c/private-make.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/level_3/fake/c/private-make.c b/level_3/fake/c/private-make.c index 5f33dd6..642e986 100644 --- a/level_3/fake/c/private-make.c +++ b/level_3/fake/c/private-make.c @@ -69,7 +69,7 @@ extern "C" { funlockfile(data->main->error.to.stream); } - return F_status_set_error(F_failure); + return F_status_set_error(F_exist_not); } return F_none; @@ -164,7 +164,7 @@ extern "C" { funlockfile(data->main->error.to.stream); } - return F_status_set_error(F_failure); + return F_status_set_error(F_exist_not); } return F_none; diff --git a/level_3/fake/c/private-make.h b/level_3/fake/c/private-make.h index 66cd84f..365aae7 100644 --- a/level_3/fake/c/private-make.h +++ b/level_3/fake/c/private-make.h @@ -45,7 +45,6 @@ extern "C" { * * @return * F_none on success. - * F_exist_not if there is no group by the given name. * * Status codes (with error bit) are returned on any problem. */ @@ -71,8 +70,8 @@ extern "C" { * * @return * F_none on success. - * F_exist_not if there is no mode by the given name. * + * F_exist_not (with error bit) if there is no mode by the given name. * Status codes (with error bit) are returned on any problem. */ #ifndef _di_fake_make_get_id_mode_ @@ -93,8 +92,8 @@ extern "C" { * * @return * F_none on success. - * F_exist_not if there is no user by the given name. * + * F_exist_not (with error bit) if there is no mode by the given name. * Status codes (with error bit) are returned on any problem. */ #ifndef _di_fake_make_get_id_owner_ -- 1.8.3.1