summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-25 14:10:20 -0700
committerGary E. Miller <gem@rellim.com>2015-03-25 14:10:20 -0700
commit0279df3904cd7319903b45c70797b4fbfae7a46c (patch)
tree08cc1b8324f8bdb518b0b0df813b29443387153d /ppsthread.c
parent73489526310dfac22a0e7da33ab862cc731fcd1d (diff)
downloadgpsd-0279df3904cd7319903b45c70797b4fbfae7a46c.tar.gz
Make cppcheck happy, reduce scope of pther_err
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c3
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 */