]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dev.h
Remove broken run when code
[bacula/bacula] / bacula / src / stored / dev.h
index 0fa2847e7a280fb2e40e5095f04a006c278b594a..108389760d69b636f6ca45b64e357eac8b44f83c 100644 (file)
@@ -238,6 +238,7 @@ public:
    int openmode;                      /* parameter passed to open_dev (useful to reopen the device) */
    int dev_type;                      /* device type */
    bool autoselect;                   /* Autoselect in autochanger */
+   bool initiated;                    /* set when init_dev() called */
    int label_type;                    /* Bacula/ANSI/IBM label types */
    uint32_t drive_index;              /* Autochanger drive index (base 0) */
    int32_t  Slot;                     /* Slot currently in drive (base 1) */
@@ -386,7 +387,7 @@ public:
    void _dunlock(const char *, int);      /* in device.c */
 #else
    void r_dlock();                        /* in device.c */
-   void r_dunlock();                      /* in device.c */
+   void r_dunlock() { dunlock(); }
    void dlock() { P(m_mutex); } 
    void dunlock() { V(m_mutex); } 
 #endif