diff options
| author | oy <Tom_Adams@web.de> | 2010-11-17 18:36:19 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-11-17 18:36:19 +0100 |
| commit | 3d3572f845c1d61acd960caf0c28562b9c8681e5 (patch) | |
| tree | 35462aeb48e77f217a79fdaaee36b80777e81d55 /src/base | |
| parent | d32b93d3ec538c89539d39c61cac4b56e00db8be (diff) | |
| download | zcatch-3d3572f845c1d61acd960caf0c28562b9c8681e5.tar.gz zcatch-3d3572f845c1d61acd960caf0c28562b9c8681e5.zip | |
fixed some compiler warnings
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/system.c | 10 |
1 files changed, 6 insertions, 4 deletions
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, |