Fix minor error in doxygen example code
authorNathan Baker <nathanb@lenovo-chrome.com>
Thu, 10 Nov 2016 15:08:11 +0000 (10:08 -0500)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 13 Nov 2016 21:10:02 +0000 (07:10 +1000)
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

index 0cf33a9..d6d0072 100644 (file)
@@ -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);