X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgps.c;h=1d32d04926170a8fc654d4f20222403976776a92;hb=358bf39b09f69220fc8e1b6c2fe98e5e185e3364;hp=ecb4bbaa69d0c7e09e9d3a482512a1951d951ed5;hpb=8fd8f76dc11064e75e44448d16d35e09e46191a2;p=collectd.git diff --git a/src/gps.c b/src/gps.c index ecb4bbaa..1d32d049 100644 --- a/src/gps.c +++ b/src/gps.c @@ -26,10 +26,10 @@ * Marc Fournier **/ +#include "collectd.h" #include "common.h" #include "plugin.h" #include "utils_time.h" -#include "collectd.h" #define CGPS_TRUE 1 #define CGPS_FALSE 0 @@ -80,7 +80,7 @@ static int cgps_thread_pause(cdtime_t pTime) { int ret = !cgps_thread_shutdown; - pthread_mutex_lock(&cgps_thread_lock); + pthread_mutex_unlock(&cgps_thread_lock); return ret; }