]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix warning about unused variable 82/head
authorFrank Meerkötter <frank@meerkoetter.org>
Sat, 31 Mar 2012 22:02:36 +0000 (00:02 +0200)
committerFrank Meerkötter <frank@meerkoetter.org>
Sat, 31 Mar 2012 22:02:36 +0000 (00:02 +0200)
src/tvheadend.h

index c4c1d777ed08186a989acd298e72fb9ea186ad69..85f8395f9959a259ffabba3d1f0534b25a70e41e 100644 (file)
@@ -400,7 +400,7 @@ extern void scopedunlock(pthread_mutex_t **mtxp);
 #define scopedlock(mtx) \
  pthread_mutex_t *scopedlock ## __LINE__ \
  __attribute__((cleanup(scopedunlock))) = mtx; \
- pthread_mutex_lock(mtx);
+ pthread_mutex_lock(scopedlock ## __LINE__);
 
 #define scopedgloballock() scopedlock(&global_lock)