[Bug 199440] typo in man page GPIO(3)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Apr 14 03:44:07 UTC 2015
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 at FreeBSD.org
Reporter: waitman at 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.
More information about the freebsd-doc
mailing list