* [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
only message in thread, other threads:[~2012-07-23 17:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20120723164036.52bc93caafcd165fc16f0284@canb.auug.org.au>
2012-07-23 17:46 ` [PATCH -next] watchdog: fix watchdog-test.c build warning Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).