Documentation patch
Peter Hutterer
peter.hutterer at who-t.net
Sun Nov 13 21:12:00 UTC 2016
On Fri, Nov 11, 2016 at 08:43:24AM -0500, Nathan Baker wrote:
> Gladly :)
>
> Nathan
>
> On Fri, Nov 11, 2016 at 3:18 AM, Peter Hutterer <peter.hutterer at who-t.net>
> wrote:
>
> > On Thu, Nov 10, 2016 at 10:11:55AM -0500, Nathan Baker wrote:
> > > Found a minor bug in the example code. Figured I'd go ahead and fix it.
> >
> > sorry, I screwed up approving your post and your attachment got dropped.
> > Can
> > you please re-send it? Thanks
> >
> > Cheers,
> > Peter
> >
> From 8e7a2b2381b26d21e9eaee38a56db9ee6b3a99b1 Mon Sep 17 00:00:00 2001
> From: Nathan Baker <nathanb at lenovo-chrome.com>
> Date: Thu, 10 Nov 2016 10:08:11 -0500
> Subject: [PATCH] Fix minor error in doxygen example code
>
> The incorrect variable was checked as a return code in an example, and
> that can be confusing for people trying to learn or use the example code
> as a starting point.
> ---
> libevdev/libevdev-uinput.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libevdev/libevdev-uinput.h b/libevdev/libevdev-uinput.h
> index 0cf33a9..d6d0072 100644
> --- a/libevdev/libevdev-uinput.h
> +++ b/libevdev/libevdev-uinput.h
> @@ -54,7 +54,7 @@ struct libevdev_uinput;
> * return err;
> *
> * uifd = open("/dev/uinput", O_RDWR);
> - * if (uidev < 0)
> + * if (uifd < 0)
> * return -errno;
> *
> * err = libevdev_uinput_create_from_device(dev, uifd, &uidev);
> --
> 2.10.2
>
applied and pushed, thanks!
Cheers,
Peter
More information about the Input-tools
mailing list