All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] salsa-lib: Fix error on jack compilation with salsa
@ 2013-03-17 15:13 Mihail Zenkov
  2013-03-20 16:37 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Mihail Zenkov @ 2013-03-17 15:13 UTC (permalink / raw)
  To: alsa-devel

Fix error on jack compilation with salsa:
/usr/include/alsa/ctl_macros.h:251:48: error: invalid conversion from
'void*' to 'snd_ctl_elem_id_t* {aka snd_ctl_elem_id*}' [-fpermissive]

--- salsa-lib-a55ce0c348cd16e7853dae11e8e0e1b5a101d884/src/ctl_macros.h
+++ salsa-lib-a55ce0c348cd16e7853dae11e8e0e1b5a101d884-1/src/ctl_macros.h
@@ -248,7 +248,7 @@
 				  unsigned int entries)
 {
 	free(obj->pids);
-	obj->pids = calloc(entries, sizeof(*obj->pids));
+	obj->pids = (snd_ctl_elem_id_t*)calloc(entries, sizeof(*obj->pids));
 	if (!obj->pids) {
 		obj->space = 0;
 		return -ENOMEM;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-03  9:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-17 15:13 [PATCH] salsa-lib: Fix error on jack compilation with salsa Mihail Zenkov
2013-03-20 16:37 ` Takashi Iwai
2013-03-30 19:11   ` Gabriel M. Beddingfield
2013-04-02  9:46     ` Takashi Iwai
2013-04-02 11:59       ` Mihail Zenkov
2013-04-03  9:35         ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.