char *_rua_util_get_db_path(uid_t uid, char *db_name)
{
char db_path[DBPATH_LEN_MAX];
- char *db_path_prefix;
- int ret;
+ const char *db_path_prefix;
tzplatform_set_user(uid);
db_path_prefix = tzplatform_getenv(TZ_USER_DB);
static int __delete_history_with_pkgname()
{
int ret;
- char *app_path;
char *pkgname = "org.tizen.ruatester";
ret = rua_delete_history_with_pkgname_for_uid(pkgname, 5001);
int row;
for (row = 0; row < rows; ++row) {
rua_history_get_rec(&record, table, rows, cols, row);
- printf("pkgname : %s, time : %d \n", record.pkg_name, record.launch_time);
+ printf("pkgname : %s, time : %d \n", record.pkg_name, (int)record.launch_time);
}
rua_history_unload_db(&table);
static int __update_stat()
{
int ret;
- char *app_path;
- char *pkgname = "org.tizen.ruatester";
ret = rua_stat_update_for_uid("ruacaller", "org.tizen.ruatester", 5001);
return ret;
printf(" 4. Update RUA stat\n");
printf(" 5. Get RUA stat tags\n");
printf("------------------------------------------\n");
- scanf("%d", &test_num);
+ ret = scanf("%d", &test_num);
+ if (ret < 0) {
+ printf("scanf fail %d", ret);
+ break;
+ }
+
run_next = run_test(test_num);
}
return ret;