watchdog: fix watchdog-test.c build warning
authorRandy Dunlap <rdunlap@xenotime.net>
Mon, 23 Jul 2012 17:46:11 +0000 (10:46 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 29 Aug 2012 15:12:58 +0000 (17:12 +0200)
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>
Documentation/watchdog/src/watchdog-test.c

index 73ff5cc93e05db4c93321464cb8ae948571a18fe..3da822967ee0e13d1a2dbcd88d2d75f5a4aca370 100644 (file)
@@ -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");