Skip to contentSkip to conversation

watchdog: watchdog-test: make term() static

PATCH In review Jerry Snitselaar 1 participant 2 messages Jul 27, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: watchdog-test: make term() static

In 3.5 warning during build 'no previous prototype for term'. Since it is only used in watchdog-test.c make term() static.

---
 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.12.rc0
#1 lore raw
Quoted 22 lines · Jerry Snitselaar

In 3.5 warning during build 'no previous prototype for term'. Since it is only used in watchdog-test.c make term() static.

---
 Documentation/watchdog/src/watchdog-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/watchdog/src/watchdog-test.c +1 -2
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");
--
Quoted 2 lines

1.7.12.rc0

Disregard this patch. I didn't see Randy's patch when I did a search in my email.

Jerry