diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-31 22:25:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-31 22:25:31 +0000 |
commit | 9fd85190bd350314aff1e129ac7ba25159650676 (patch) | |
tree | 880deb42669db2a47f00b84054cf8e0ca1f10bbc | |
parent | 5fbab9af64e5f09f8b806e5b66e6731efe06252c (diff) | |
download | px4-nuttx-9fd85190bd350314aff1e129ac7ba25159650676.tar.gz px4-nuttx-9fd85190bd350314aff1e129ac7ba25159650676.tar.bz2 px4-nuttx-9fd85190bd350314aff1e129ac7ba25159650676.zip |
Fixes for SDCC
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@598 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/sched/wd_internal.h | 13 | ||||
-rw-r--r-- | nuttx/sched/wd_start.c | 2 |
2 files changed, 7 insertions, 8 deletions
diff --git a/nuttx/sched/wd_internal.h b/nuttx/sched/wd_internal.h index 26ee264ad..d603e2973 100644 --- a/nuttx/sched/wd_internal.h +++ b/nuttx/sched/wd_internal.h @@ -63,12 +63,12 @@ struct wdog_s { - struct wdog_s *next; /* Support for singly linked lists. */ - wdentry_t func; /* Function to execute when delay expires */ - int lag; /* Timer associated with the delay */ - boolean active; /* TRUE if the watchdog is actively timing */ - ubyte argc; /* The number of parameters to pass */ - uint32 parm[CONFIG_MAX_WDOGPARMS]; + FAR struct wdog_s *next; /* Support for singly linked lists. */ + wdentry_t func; /* Function to execute when delay expires */ + int lag; /* Timer associated with the delay */ + boolean active; /* TRUE if the watchdog is actively timing */ + ubyte argc; /* The number of parameters to pass */ + uint32 parm[CONFIG_MAX_WDOGPARMS]; }; typedef struct wdog_s wdog_t; @@ -118,4 +118,3 @@ EXTERN void weak_function wd_timer(void); #endif #endif /* __WD_INTERNAL_H */ - diff --git a/nuttx/sched/wd_start.c b/nuttx/sched/wd_start.c index aa732420f..ec50b94cd 100644 --- a/nuttx/sched/wd_start.c +++ b/nuttx/sched/wd_start.c @@ -192,7 +192,7 @@ STATUS wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) else { now = 0; - prev = curr = (wdog_t*)g_wdactivelist.head; + prev = curr = (FAR wdog_t*)g_wdactivelist.head; /* Advance to positive time */ |