Skip to content

Commit

Permalink
(tasks) Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Dec 4, 2016
1 parent 62ab2fc commit e2b27f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions tasks/task_netplay_lan_scan.c
Expand Up @@ -25,11 +25,11 @@ static void netplay_lan_scan_callback(void *task_data,
void *user_data, const char *error)
{
unsigned i;
unsigned menu_type = 0;
const char *path = NULL;
const char *label = NULL;
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
file_list_t *file_list = NULL;
unsigned menu_type = 0;
const char *path = NULL;
const char *label = NULL;
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
file_list_t *file_list = NULL;
struct netplay_host_list *netplay_hosts = NULL;

menu_entries_get_last_stack(&path, &label, &menu_type, &enum_idx, NULL);
Expand Down Expand Up @@ -81,10 +81,10 @@ bool task_push_netplay_lan_scan(void)
if (!task)
goto error;

task->type = TASK_TYPE_BLOCKING;
task->handler = task_netplay_lan_scan_handler;
task->type = TASK_TYPE_BLOCKING;
task->handler = task_netplay_lan_scan_handler;
task->callback = netplay_lan_scan_callback;
task->title = strdup(msg_hash_to_str(MSG_NETPLAY_LAN_SCANNING));
task->title = strdup(msg_hash_to_str(MSG_NETPLAY_LAN_SCANNING));

task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);

Expand Down
6 changes: 3 additions & 3 deletions tasks/task_overlay.c
Expand Up @@ -64,8 +64,8 @@ static void task_overlay_load_desc_image(
char image_path[PATH_MAX_LENGTH];
config_file_t *conf = loader->conf;

overlay_desc_image_key[0] = '\0';
image_path[0] = '\0';
overlay_desc_image_key[0] = '\0';
image_path[0] = '\0';

snprintf(overlay_desc_image_key, sizeof(overlay_desc_image_key),
"overlay%u_desc%u_overlay", ol_idx, desc_idx);
Expand Down Expand Up @@ -729,10 +729,10 @@ static bool task_overlay_finder(retro_task_t *task, void *user_data)
static bool task_push_overlay_load(const char *overlay_path,
retro_task_callback_t cb, void *user_data)
{
task_finder_data_t find_data;
retro_task_t *t = NULL;
config_file_t *conf = NULL;
overlay_loader_t *loader = (overlay_loader_t*)calloc(1, sizeof(*loader));
task_finder_data_t find_data;

if (!loader)
goto error;
Expand Down

0 comments on commit e2b27f6

Please sign in to comment.