* [PATCH -next] watchdog: fix watchdog-test.c build warning
[not found] <20120723164036.52bc93caafcd165fc16f0284@canb.auug.org.au>
@ 2012-07-23 17:46 ` Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2012-07-23 17:46 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-next, LKML, Wim Van Sebroeck, linux-watchdog, Andrew Morton
From: Randy Dunlap <rdunlap@xenotime.net>
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>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-watchdog@vger.kernel.org
---
Documentation/watchdog/src/watchdog-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20120723.orig/Documentation/watchdog/src/watchdog-test.c
+++ linux-next-20120723/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");
^ permalink raw reply [flat|nested] only message in thread