Skip to content

Commit 4c6ea93

Browse files
Gleb O. Raikogit-core
authored andcommitted
Clean up sources
1 parent d5984c9 commit 4c6ea93

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

db.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
sqlite3 *database_init()
2929
{
3030
sqlite3 *db;
31-
int version, rc, databaseStatus = 0;
32-
char *zErrMsg = 0;
31+
int rc;
3332

3433
rc = sqlite3_open_v2(REQUESTOR_DATABASE_PATH, &db, SQLITE_OPEN_READONLY, NULL);
3534
if ( rc ) {
@@ -49,7 +48,6 @@ int database_check(sqlite3 *db, struct su_initiator *from, struct su_request *to
4948
char **result;
5049
int nrow,ncol;
5150
int allow = DB_INTERACTIVE;
52-
struct timeval tv;
5351

5452
sqlite3_snprintf(
5553
sizeof(sql), sql,

su.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ static int socket_accept(int serv_fd)
224224
static int socket_receive_result(int serv_fd, char *result, ssize_t result_len)
225225
{
226226
ssize_t len;
227-
char buf[64];
228227

229228
for (;;) {
230229
int fd = socket_accept(serv_fd);

su.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
#define REQUESTOR_DATABASES_PATH REQUESTOR_DATA_PATH "/databases"
2525
#define REQUESTOR_DATABASE_PATH REQUESTOR_DATABASES_PATH "/permissions.sqlite"
2626

27-
#define APPS_TABLE_DEFINITION "CREATE TABLE IF NOT EXISTS apps (_id INTEGER, uid INTEGER, package TEXT, name TEXT, exec_uid INTEGER, exec_cmd TEXT, allow INTEGER, PRIMARY KEY (_id), UNIQUE (uid,exec_uid,exec_cmd));"
28-
#define LOGS_TABLE_DEFINITION "CREATE TABLE IF NOT EXISTS logs (_id INTEGER, uid INTEGER, name INTEGER, app_id INTEGER, date INTEGER, type INTEGER, PRIMARY KEY (_id));"
29-
#define PREFS_TABLE_DEFINITION "CREATE TABLE IF NOT EXISTS prefs (_id INTEGER, key TEXT, value TEXT, PRIMARY KEY(_id));"
30-
3127
#define DEFAULT_COMMAND "/system/bin/sh"
3228

3329
#define SOCKET_PATH_TEMPLATE REQUESTOR_CACHE_PATH "/.socketXXXXXX"

0 commit comments

Comments
 (0)