thanks for reminding me that designated initializers are not yet part of
C++ :)
however, is your construct valid ? g++ -Wall gave me a warning on this line
?

I guess the safest fix is just to use default initialization and assign it
afterward


On 30 January 2014 22:08, 9000h <notifications@github.com> wrote:

> In src/main.cpp:
>
> >  	}
> >
> >  	return 1;
> >  }
> >
> > +int Main::onCecKeyPress(const cec_user_control_code & keycode) {
> > +	cec_keypress key = { .keycode=keycode };
>
>
>    - cec_keypress key = { .keycode=keycode }; typo should be
>    - cec_keypress key = { key.keycode=keycode };
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/bramp/libcec-daemon/pull/14/files#r9325730>
> .
>