diff --git a/wminput/plugins/led/led.c b/wminput/plugins/led/led.c index 93b96d9..723a2db 100644 --- a/wminput/plugins/led/led.c +++ b/wminput/plugins/led/led.c @@ -83,7 +83,7 @@ struct wmplugin_data *wmplugin_exec(int mesg_count, union cwiid_mesg mesg[]) btn_mesg = NULL; for (i=0; i < mesg_count; i++) { if (mesg[i].type == CWIID_MESG_BTN) { - btn_mesg = &mesg[i].btn_mesg; + btn_mesg = (struct cwiid_btn_message *) &mesg[i].btn_mesg; button = mesg[i].btn_mesg.buttons; } }