Date: Tue, 14 Apr 2015 03:44:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-doc@FreeBSD.org Subject: [Bug 199440] typo in man page GPIO(3) Message-ID: <bug-199440-9@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199440 Bug ID: 199440 Summary: typo in man page GPIO(3) Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Documentation Assignee: freebsd-doc@FreeBSD.org Reporter: waitman@waitman.net The example reads: #include <err.h> #include <libgpio.h> gpio_handle_t handle; handle = gpio_open(0); if (handle == GPIO_HANDLE_INVALID) err(1, "gpio_open failed"); GPIO_HANDLE_INVALID should be GPIO_INVALID_HANDLE as defined in libgpio.h also, libgpio uses uint32_t but does not #include <sys/types.h> so for the example to build, must have #include <sys/types.h> -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199440-9>