Skip to contentSkip to conversation

watchdog: fix a compiler warning of test program

PATCH In review yan 3 participants 3 messages Aug 29, 2012 – Aug 30, 2012

Subsystems (2)
lore
Share & tools
lore

yan

author
#0 lore raw

PATCH 1/1 watchdog: fix a compiler warning of test program

This patch fixs the following compiler warning:

Documentation/watchdog/src/watchdog-test.c:34:6: \
warning: no previous prototype for ‘term’ [-Wmissing-prototypes]

---
 Documentation/watchdog/src/watchdog-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/watchdog/src/watchdog-test.c +1 -1
index 73ff5cc..3da8229 100644
@@ -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");
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · yan

This patch fixs the following compiler warning:

Hi,
This is already fixed in the watchdog git tree.

Thanks.

Quoted 21 lines

Documentation/watchdog/src/watchdog-test.c:34:6: \
warning: no previous prototype for ‘term’ [-Wmissing-prototypes]

---
 Documentation/watchdog/src/watchdog-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/watchdog/src/watchdog-test.c +1 -1
index 73ff5cc..3da8229 100644
@@ -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");
Signature · 1 line
~Randy
#2 lore raw

And the fix is in Linus his tree also now.

Kind regards,
Wim.

Quoted 37 lines · yan
Quoted 3 lines

This patch fixs the following compiler warning:

Hi,
This is already fixed in the watchdog git tree.

Thanks.

Quoted 21 lines

Documentation/watchdog/src/watchdog-test.c:34:6: \
warning: no previous prototype for ‘term’ [-Wmissing-prototypes]

---
 Documentation/watchdog/src/watchdog-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/watchdog/src/watchdog-test.c +1 -1
index 73ff5cc..3da8229 100644
@@ -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");
Signature · 1 line
~Randy