diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-25 14:10:20 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-25 14:10:20 -0700 |
commit | 0279df3904cd7319903b45c70797b4fbfae7a46c (patch) | |
tree | 08cc1b8324f8bdb518b0b0df813b29443387153d /ppsthread.c | |
parent | 73489526310dfac22a0e7da33ab862cc731fcd1d (diff) | |
download | gpsd-0279df3904cd7319903b45c70797b4fbfae7a46c.tar.gz |
Make cppcheck happy, reduce scope of pther_err
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ppsthread.c b/ppsthread.c index ee53ccc4..299e4dfd 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -488,7 +488,6 @@ static int get_edge_rfc2783( volatile struct pps_thread_t *thread_context, volatile struct timedelta_t *last_fixtime) { - int pthread_err; /* return code from pthread functions */ pps_info_t pi; char ts_str1[TIMESPEC_LEN], ts_str2[TIMESPEC_LEN]; struct timespec kernelpps_tv; @@ -533,6 +532,8 @@ static int get_edge_rfc2783( volatile struct pps_thread_t *thread_context, return 0; } if ( pps_canwait ) { + int pthread_err; /* return code from pthread functions */ + /* get_edge_tiocmiwait() got this if !pps_canwait */ /* duplicate copy in get_edge_tiocmiwait */ |