/*sqlite db code*/
#define APP2SD_DB_FILE tzplatform_mkpath(TZ_SYS_DB, ".app2sd.db")
-sqlite3 *app2sd_db;
+static sqlite3 *app2sd_db;
#define QUERY_CREATE_TABLE_APP2SD "CREATE TABLE IF NOT EXISTS app2sd_info " \
"(pkgid TEXT NOT NULL, password TEXT NOT NULL, " \
"filename TEXT NOT NULL, uid INTEGER, PRIMARY KEY(pkgid, uid))"
#define APPFW_UID 301
-int processing_busy_cnt;
-guint source_id;
+static int processing_busy_cnt;
+static guint source_id;
-GMainLoop *app2sd_mainloop = NULL;
+static GMainLoop *app2sd_mainloop = NULL;
static void __free_dir_detail(gpointer data)
{
#define OWNER_ROOT 0
#define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
-app2ext_handle *handle = NULL;
+static app2ext_handle *handle = NULL;
-char pkg_ro_content_rpm[3][5] = { "bin", "res", "lib" };
+static const char pkg_ro_content_rpm[3][5] = { "bin", "res", "lib" };
#define COUNT_OF_ERROR_LIST APP2EXT_ERROR_ENUM_MAX
-char error_list[COUNT_OF_ERROR_LIST][100] = {
+static const char error_list[COUNT_OF_ERROR_LIST][100] = {
"SUCCESS",
"APP2EXT_ERROR_UNKNOWN",
"APP2EXT_ERROR_INVALID_ARGUMENTS",