Permalink
Browse files

watchdog: fix watchdog-test.c build warning

Fix compiler warning by making the function static:

Documentation/watchdog/src/watchdog-test.c:34:6: warning: no previous prototype for 'term'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information...
1 parent c182ae4 commit 4b1c2f41c2dda158bb7a3dded70775a76b581995 Randy Dunlap committed with Wim Van Sebroeck Jul 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Documentation/watchdog/src/watchdog-test.c
View
2 Documentation/watchdog/src/watchdog-test.c
@@ -31,7 +31,7 @@ static void keep_alive(void)
* or "-e" to enable the card.
*/
-void term(int sig)
+static void term(int sig)
{
close(fd);
fprintf(stderr, "Stopping watchdog ticks...\n");

0 comments on commit 4b1c2f4

Please sign in to comment.