From c37d9ad3fbf7439d3935eeb3de12d4bed8fe857c Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Thu, 19 Apr 2012 14:05:23 +0200 Subject: [PATCH] Fix class member shadowing. "devlock.c", line 60: Warning: priority hides devlock::priority. --- bacula/src/lib/devlock.c | 4 ++-- bacula/src/lib/devlock.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/lib/devlock.c b/bacula/src/lib/devlock.c index 5b26545d3f..99a1bc7ca9 100644 --- a/bacula/src/lib/devlock.c +++ b/bacula/src/lib/devlock.c @@ -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; } diff --git a/bacula/src/lib/devlock.h b/bacula/src/lib/devlock.h index 263c870e96..779e53c399 100644 --- a/bacula/src/lib/devlock.h +++ b/bacula/src/lib/devlock.h @@ -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); -- 2.39.5