/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
int autoload_device(DCR *dcr, int writing, BSOCK *dir);
bool autochanger_cmd(DCR *dcr, BSOCK *dir, const char *cmd);
bool unload_autochanger(DCR *dcr, int loaded);
+bool unload_dev(DCR *dcr, DEVICE *dev);
char *edit_device_codes(DCR *dcr, char *omsg, const char *imsg, const char *cmd);
int get_autochanger_loaded_slot(DCR *dcr);
static void free_vol_item(VOLRES *vol)
{
+ DEVICE *dev = NULL;
+
free(vol->vol_name);
if (vol->dev) {
- vol->dev->vol = NULL;
+ dev = vol->dev;
}
free(vol);
+ if (dev) {
+ dev->vol = NULL;
+ }
}
-
/*
* Put a new Volume entry in the Volume list. This
* effectively reserves the volume so that it will
#undef VERSION
#define VERSION "2.2.9-b5"
-#define BDATE "02 April 2008"
-#define LSMDATE "02Apr08"
+#define BDATE "04 April 2008"
+#define LSMDATE "04Apr08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */