summaryrefslogtreecommitdiffstats
path: root/init/property_service.c
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-24 19:52:41 -0800
committerAndreas Gampe <agampe@google.com>2014-11-24 19:52:41 -0800
commita016c42b4f7122625a417929afa0e9379ffa4887 (patch)
tree0be123cd7aaaec26ffb58967152bef64b74134a0 /init/property_service.c
parent1690b49e631904759737176b4bb285d446655f5d (diff)
downloadsystem_core-a016c42b4f7122625a417929afa0e9379ffa4887.zip
system_core-a016c42b4f7122625a417929afa0e9379ffa4887.tar.gz
system_core-a016c42b4f7122625a417929afa0e9379ffa4887.tar.bz2
Init: Remove unused variables
For build-system CFLAGS clean-up, fix unused variables. Use a #define instead of static variable in a header file. Change-Id: Id47bf38e51644b61a9f3ac1893a16553695f1aac
Diffstat (limited to 'init/property_service.c')
-rw-r--r--init/property_service.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/init/property_service.c b/init/property_service.c
index 44658c5..1f98e13 100644
--- a/init/property_service.c
+++ b/init/property_service.c
@@ -63,7 +63,6 @@ typedef struct {
static int init_workspace(workspace *w, size_t size)
{
- void *data;
int fd = open(PROP_FILENAME, O_RDONLY | O_NOFOLLOW);
if (fd < 0)
return -1;
@@ -142,9 +141,6 @@ static int check_control_mac_perms(const char *name, char *sctx)
*/
static int check_perms(const char *name, char *sctx)
{
- int i;
- unsigned int app_id;
-
if(!strncmp(name, "ro.", 3))
name +=3;
@@ -261,7 +257,6 @@ void handle_property_set_fd()
prop_msg msg;
int s;
int r;
- int res;
struct ucred cr;
struct sockaddr_un addr;
socklen_t addr_size = sizeof(addr);