From d9acb7b9b41525038e5ced240e9a1942e4c93792 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 26 Jul 2004 15:15:19 +0000 Subject: [PATCH] Fix dev.c return codes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1490 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dev.c | 4 ++-- bacula/src/win32/README.win32 | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 658ea1aad1..a7141b2c26 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -743,7 +743,7 @@ bool offline_dev(DEVICE *dev) return false; } Dmsg1(100, "Offlined device %s\n", dev->dev_name); - return false; + return true; } int offline_or_rewind_dev(DEVICE *dev) @@ -1110,7 +1110,7 @@ reposition_dev(DEVICE *dev, uint32_t file, uint32_t block) Dmsg1(100, "fsr %d\n", block-dev->block_num); return fsr_dev(dev, block-dev->block_num); } - return false; + return true; } diff --git a/bacula/src/win32/README.win32 b/bacula/src/win32/README.win32 index 58efef1d56..e4bee1eab6 100644 --- a/bacula/src/win32/README.win32 +++ b/bacula/src/win32/README.win32 @@ -41,17 +41,16 @@ To build it: - You need Visual Studio installed. - You need to load depkgs-win32, then cd depkgs-win32 + make + (after building zlib and pthreads, it fails in wx) cd wx ./configure - (try doing a make, but it will probably fail) -- You may have to build wx with VC++ (as was the case for me). + make + (if it succeeds skip the next item, otherwise do it) +- You may have to build wx with VC++. After starting VC++, use File->Open Workspace then open wx/src/wxWindows.dsw then use Build->Build All or Build->build wxmsw.lib should work too. -- Then - cd depkgs-win32 - make - this will build pthreads and zlib - cd bacula ./configure --enable-client-only cd src/win32 -- 2.39.5