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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"