1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 04:46:37 +02:00

Remove extra semicolon in lock/unlock macros.

lock/unlock are always expanded in a context followed by a semicolon.
This commit is contained in:
iphydf
2020-04-23 00:22:18 +00:00
parent e7142e49fd
commit b270c1e8b7
2 changed files with 4 additions and 2 deletions

View File

@ -102,8 +102,8 @@ uint32_t primary_video_device[2]; /* Primary device */
static ToxAV *av = NULL;
/* q_mutex */
#define lock pthread_mutex_lock(&video_mutex);
#define unlock pthread_mutex_unlock(&video_mutex);
#define lock pthread_mutex_lock(&video_mutex)
#define unlock pthread_mutex_unlock(&video_mutex)
pthread_mutex_t video_mutex;
bool video_thread_running = true,