]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix class member shadowing.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 19 Apr 2012 12:05:23 +0000 (14:05 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:38 +0000 (14:50 +0200)
"devlock.c", line 60: Warning: priority hides devlock::priority.

bacula/src/lib/devlock.c
bacula/src/lib/devlock.h

index 5b26545d3f51993f565f77858dfd70a73b607065..99a1bc7ca94057402f914a4d3398dae1fcedbce7 100644 (file)
@@ -57,14 +57,14 @@ devlock *new_devlock()
    return lock;
 }
 
-int devlock::init(int priority)                            
+int devlock::init(int initial_priority)
 {
    int stat;
    devlock *rwl = this;
 
    rwl->r_active = rwl->w_active = 0;
    rwl->r_wait = rwl->w_wait = 0;
-   rwl->priority = priority;
+   rwl->priority = initial_priority;
    if ((stat = pthread_mutex_init(&rwl->mutex, NULL)) != 0) {
       return stat;
    }
index 263c870e96ddf73fdbd460a3b7ee18951efd6963..779e53c399f424acb43279a8c73b5717cf92576c 100644 (file)
@@ -66,7 +66,7 @@ private:
 public:
    devlock(int reason, bool can_take=false);
    ~devlock();
-   int init(int priority);
+   int init(int initial_priority);
    int destroy();
    int take_lock(take_lock_t *hold, int reason);
    int return_lock(take_lock_t *hold);