21.06.2013 14:38, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > --- > qemu-char.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qemu-char.c b/qemu-char.c > index 5751391..1c0903f 100644 > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -3127,7 +3127,7 @@ typedef struct CharDriver { > /* old, pre qapi */ > CharDriverState *(*open)(QemuOpts *opts); > /* new, qapi-based */ > - int kind; > + ChardevBackendKind kind; > void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp); > } CharDriver;
How about switching argument of register_char_driver_qapi() to the same type as well? Thanks, /mjt