summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-04-09 09:52:45 -0700
committerAndreas Gampe <agampe@google.com>2015-04-09 09:54:35 -0700
commit0ad7a11003ad76381452c3751368b8e3f42b1f6a (patch)
treeec41ec1c0cdfdb394c90561bfd28965c7cbfbe2b /cmds
parentd107c305f74592e8078754b317d840a2dde661db (diff)
downloadframeworks_native-0ad7a11003ad76381452c3751368b8e3f42b1f6a.zip
frameworks_native-0ad7a11003ad76381452c3751368b8e3f42b1f6a.tar.gz
frameworks_native-0ad7a11003ad76381452c3751368b8e3f42b1f6a.tar.bz2
Installd: Fix Clang build
Remove some unused parameters and variables. Change-Id: I507ae48fe1744b800ceb29192d463fd26c2ccda7
Diffstat (limited to 'cmds')
-rw-r--r--cmds/installd/commands.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmds/installd/commands.cpp b/cmds/installd/commands.cpp
index 73f707a..2d1965d 100644
--- a/cmds/installd/commands.cpp
+++ b/cmds/installd/commands.cpp
@@ -35,8 +35,6 @@ dir_rec_array_t android_system_dirs;
int install(const char *uuid, const char *pkgname, uid_t uid, gid_t gid, const char *seinfo)
{
- struct stat libStat;
-
if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) {
ALOGE("invalid uid/gid: %d %d\n", uid, gid);
return -1;
@@ -141,8 +139,6 @@ int delete_user_data(const char *uuid, const char *pkgname, userid_t userid)
int make_user_data(const char *uuid, const char *pkgname, uid_t uid, userid_t userid, const char* seinfo)
{
- struct stat libStat;
-
std::string _pkgdir(create_package_data_path(uuid, pkgname, userid));
const char* pkgdir = _pkgdir.c_str();
@@ -1539,7 +1535,8 @@ fail:
}
// TODO: extend to know about other volumes
-int restorecon_data(const char *uuid, const char* pkgName, const char* seinfo, uid_t uid)
+int restorecon_data(const char* uuid __attribute__((unused)), const char* pkgName,
+ const char* seinfo, uid_t uid)
{
struct dirent *entry;
DIR *d;