From 74286788a6786124fd590522b09664000dab14c0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Sep 2015 23:00:16 +0200 Subject: [PATCH] Cleanups --- menu/cbs/menu_cbs_ok.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index ed440f6610..fa825e9667 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1281,7 +1281,8 @@ static int generic_action_ok_network(const char *path, { char url_path[PATH_MAX_LENGTH]; settings_t *settings = config_get_ptr(); - unsigned type_id2 = 0; + unsigned type_id2 = 0; + const char *url_label = NULL; menu_entries_set_refresh(true); @@ -1295,21 +1296,19 @@ static int generic_action_ok_network(const char *path, case ACTION_OK_NETWORK_CORE_CONTENT_LIST: fill_pathname_join(url_path, settings->network.buildbot_assets_url, "cores/gw/.index", sizeof(url_path)); - - rarch_main_data_msg_queue_push(DATA_TYPE_HTTP, url_path, "cb_core_content_list", 0, 1, - true); + url_label = "cb_core_content_list"; type_id2 = ACTION_OK_DL_CORE_CONTENT_LIST; break; case ACTION_OK_NETWORK_CORE_UPDATER_LIST: fill_pathname_join(url_path, settings->network.buildbot_url, ".index", sizeof(url_path)); - - rarch_main_data_msg_queue_push(DATA_TYPE_HTTP, url_path, "cb_core_updater_list", 0, 1, - true); - type_id2 = ACTION_OK_DL_CORE_UPDATER_LIST; + url_label = "cb_core_updater_list"; + type_id2 = ACTION_OK_DL_CORE_UPDATER_LIST; break; } + rarch_main_data_msg_queue_push(DATA_TYPE_HTTP, url_path, url_label, 0, 1, + true); return generic_action_ok_displaylist_push(path, label, type, idx, entry_idx, type_id2); }