From 3d3572f845c1d61acd960caf0c28562b9c8681e5 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 17 Nov 2010 18:36:19 +0100 Subject: fixed some compiler warnings --- src/base/system.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/base') diff --git a/src/base/system.c b/src/base/system.c index 972fbada..b7f76a88 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -987,10 +987,12 @@ int fs_is_dir(const char *path) int fs_chdir(const char *path) { - if (fs_is_dir(path)) + if(fs_is_dir(path)) { - chdir(path); - return 0; + if(chdir(path)) + return 1; + else + return 0; } else return 1; @@ -1306,7 +1308,7 @@ void gui_messagebox(const char *title, const char *message) title, message); - system(cmd); + (void)system(cmd); #elif defined(CONF_FAMILY_WINDOWS) MessageBox(NULL, message, -- cgit 1.4.1