Fix warnings

This commit is contained in:
Chris Young 2014-11-09 19:37:35 +00:00
parent 1d07bd0657
commit c62f967935
2 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@
struct hlcache_object;
struct selection;
struct gui_window_2;
struct FileRequester *filereq;
struct FileRequester *savereq;

View File

@ -63,11 +63,12 @@
#include "desktop/searchweb.h"
#include "desktop/gui_window.h"
#include "amiga/object.h"
#include "amiga/file.h"
#include "amiga/font.h"
#include "amiga/gui.h"
#include "amiga/gui_options.h"
#include "amiga/help.h"
#include "amiga/object.h"
#include "amiga/theme.h"
#include "amiga/utf8.h"
@ -1768,7 +1769,7 @@ static void ami_gui_opts_use(bool save)
GetAttr(GETFILE_Drawer,gow->objects[GID_OPTS_DLDIR],(ULONG *)&data);
if((nsoption_charp(download_dir) == NULL) ||
(strcmp(data, nsoption_charp(download_dir)) != 0)) {
(strcmp((char *)data, nsoption_charp(download_dir)) != 0)) {
nsoption_set_charp(download_dir, (char *)strdup((char *)data));
ami_file_req_free();
ami_file_req_init();