Doc: fix simple watchdog daemon to build cleanly
Subsystems (2)
PATCH 1/1 Doc: fix simple watchdog daemon to build cleanly
From: Randy Dunlap <[email protected]>
Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt to build cleanly.
Signed-off-by Randy Dunlap <[email protected]>
--- Documentation/watchdog/watchdog-api.txt | 3 +++ 1 files changed, 3 insertions(+)
Documentation/watchdog/watchdog-api.txt +3 -0
@@ -36,6 +36,9 @@ timeout or margin. The simplest way to some data to the device. So a very simple watchdog daemon would look like this: +#include <stdlib.h> +#include <fcntl.h> + int main(int argc, const char *argv[]) { int fd=open("/dev/watchdog",O_WRONLY); if (fd==-1) {
---