Skip to content

Commit

Permalink
watchdog: fix watchdog-test.c build warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
rddunlap authored and Wim Van Sebroeck committed Aug 29, 2012
1 parent c182ae4 commit 4b1c2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/watchdog/src/watchdog-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4b1c2f4

Please sign in to comment.