X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgps.c;h=1d32d04926170a8fc654d4f20222403976776a92;hb=03003c78f5e80288b47cb751dc25db3686b19afc;hp=ecb4bbaa69d0c7e09e9d3a482512a1951d951ed5;hpb=22813e1a6a3d059efc67975893df985052661a7a;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; }