diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-02 15:36:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-02 15:36:19 +0000 |
commit | 5ebf11ee63f1baaf070fd8484d99362810cd5bcc (patch) | |
tree | 2068f6956ceee5aba740da5acb8f97858e2b3f8a /nuttx/sched/wd_start.c | |
parent | addae64d8c028ffd2c3bb05ec7ebdd1a73720998 (diff) | |
download | nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.tar.gz nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.tar.bz2 nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.zip |
Fix some warnings and fix some simulator builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4688 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/wd_start.c')
-rw-r--r-- | nuttx/sched/wd_start.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/nuttx/sched/wd_start.c b/nuttx/sched/wd_start.c index 1f37dbf99..a2f19fbdc 100644 --- a/nuttx/sched/wd_start.c +++ b/nuttx/sched/wd_start.c @@ -1,8 +1,8 @@ /**************************************************************************** * sched/wd_start.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -294,7 +294,6 @@ int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) void wd_timer(void) { - pid_t pid; FAR wdog_t *wdog; /* Check if there are any active watchdogs to process */ @@ -333,12 +332,6 @@ void wd_timer(void) wdog->active = false; - /* Get the current task's process ID. We'll need this later to - * see if the watchdog function caused a context switch. - */ - - pid = getpid(); - /* Execute the watchdog function */ up_setpicbase(wdog->picbase); |