From 3930d00519bbcee968a804b1f445c1638531cc15 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 20 Apr 2016 10:43:58 +0100 Subject: atari header cleanup and warning squash This rationalises atari platform user of headers and squashes a lot of warnings. Should not be viewed as real maintenance, more that it was getting in the way of fixing real core header issues. --- atari/download.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'atari/download.c') diff --git a/atari/download.c b/atari/download.c index ce56d66d3..c6f1d684b 100644 --- a/atari/download.c +++ b/atari/download.c @@ -195,9 +195,8 @@ static void on_close(struct gui_download_window * dw) static void gui_download_window_destroy( struct gui_download_window * gdw) { + LOG("gdw %p", gdw); - - LOG(""); if (gdw->status == NSATARI_DOWNLOAD_WORKING) { download_context_abort(gdw->ctx); } @@ -355,14 +354,13 @@ gui_download_window_create(download_context *ctx, struct gui_window *parent) static nserror gui_download_window_data(struct gui_download_window *dw, const char *data, unsigned int size) { - uint32_t clck = clock(); uint32_t tnow = clck / (CLOCKS_PER_SEC>>3); uint32_t sdiff = (clck / (CLOCKS_PER_SEC)) - dw->start; - LOG(""); + LOG("dw %p",dw); - if(dw->abort == true){ + if (dw->abort == true){ dw->status = NSATARI_DOWNLOAD_CANCELED; dw->abort = false; download_context_abort(dw->ctx); @@ -409,6 +407,7 @@ static void gui_download_window_error(struct gui_download_window *dw, const char *error_msg) { LOG("%s", error_msg); + strncpy((char*)&dw->lbl_file, error_msg, MAX_SLEN_LBL_FILE-1); dw->status = NSATARI_DOWNLOAD_ERROR; gemtk_wm_exec_redraw(dw->guiwin, NULL); @@ -418,7 +417,7 @@ static void gui_download_window_error(struct gui_download_window *dw, static void gui_download_window_done(struct gui_download_window *dw) { - LOG(""); + LOG("dw %p", dw); // TODO: change abort to close dw->status = NSATARI_DOWNLOAD_COMPLETE; -- cgit v1.2.3