From 8b5967cd28a02dd169920f84722d5946d76b1690 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 29 Sep 2014 16:54:19 +0200 Subject: [PATCH] Renaming function 'tzplatform_isadmin' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The function 'tzplatform_isadmin' is renamed to 'tzplatform_has_system_group' Change-Id: Iaf3fd001f5ae144c25d06e6bdc793c0b0b568367 Signed-off-by: José Bollo --- src/isadmin.c | 2 +- src/isadmin.h | 2 +- src/static-api.c | 4 ++-- src/tzplatform_config.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/isadmin.c b/src/isadmin.c index 903ebe2..1d1d699 100644 --- a/src/isadmin.c +++ b/src/isadmin.c @@ -40,7 +40,7 @@ #include "tzplatform_variables.h" #include "tzplatform_config.h" -int _is_admin_static_(uid_t uid) { +int _has_system_group_static_(uid_t uid) { struct passwd *userinfo = NULL; struct group *systemgroupinfo = NULL; diff --git a/src/isadmin.h b/src/isadmin.h index 835f913..25ebd75 100644 --- a/src/isadmin.h +++ b/src/isadmin.h @@ -42,7 +42,7 @@ extern "C" { * If you pass the -1 value to this function it will take the current uid given * by the POSIX function getuid(); */ -int _is_admin_static_(uid_t uid); +int _has_system_group_static_(uid_t uid); #ifdef __cplusplus } diff --git a/src/static-api.c b/src/static-api.c index f259a8e..d6a4e0c 100644 --- a/src/static-api.c +++ b/src/static-api.c @@ -131,9 +131,9 @@ gid_t tzplatform_context_getgid(struct tzplatform_context *context, enum tzplatf return _context_getgid_tzplatform_(id, tizen_platform_config_signup, context); } -int tzplatform_isadmin(uid_t uid) +int tzplatform_has_system_group(uid_t uid) { - return _is_admin_static_(uid); + return _has_system_group_static_(uid); } #ifdef TEST diff --git a/src/tzplatform_config.h b/src/tzplatform_config.h index c58b468..17c89cd 100644 --- a/src/tzplatform_config.h +++ b/src/tzplatform_config.h @@ -402,7 +402,7 @@ gid_t tzplatform_context_getgid(struct tzplatform_context *context, enum tzplatf */ extern -int tzplatform_isadmin(uid_t uid); +int tzplatform_has_system_group(uid_t uid); #ifdef __cplusplus } -- 2.7.4