OSDN Git Service

bat: Don't pass incompatible function pointers to pthread_cleanup_push()
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Nov 2015 13:09:50 +0000 (14:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Nov 2015 13:09:50 +0000 (14:09 +0100)
commited0cce1b6061aade0077982cb5d22fa68ddffd2f
tree3470a46004dbc0e2b182b72f47a291f4258fd3f2
parent3bf8e79c3bfee3ca14277aad3d9c406dfc053bbf
bat: Don't pass incompatible function pointers to pthread_cleanup_push()

pthread_cleanup_push() takes a function pointer for void (void *).
Although it may work in most cases, we shouldn't pass an incompatible
function pointer there, as some old gcc complains:
  alsa.c:560: warning: initialization from incompatible pointer type
  alsa.c:562: warning: initialization from incompatible pointer type

Signed-off-by: Takashi Iwai <tiwai@suse.de>
bat/alsa.c