From: Costa Tsaousis (ktsaou) Date: Wed, 30 Mar 2016 20:02:57 +0000 (+0300) Subject: fixed __useconds_t and unused include of execinfo.h #66 X-Git-Tag: v1.1.0~120 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8209164b891b1ac27f0588d56377fb7e82748614;p=netdata.git fixed __useconds_t and unused include of execinfo.h #66 --- diff --git a/src/apps_plugin.c b/src/apps_plugin.c index c9b22698..1a0d43fa 100755 --- a/src/apps_plugin.c +++ b/src/apps_plugin.c @@ -1994,7 +1994,7 @@ int main(int argc, char **argv) if(usec < (update_every * 1000000ULL / 2)) susec = (update_every * 1000000ULL) - usec; else susec = update_every * 1000000ULL / 2; - usleep((__useconds_t) susec); + usleep((useconds_t) susec); bcopy(&now, &last, sizeof(struct timeval)); // restart once per day (14400 seconds) diff --git a/src/daemon.c b/src/daemon.c index 26881479..22d8f7fc 100755 --- a/src/daemon.c +++ b/src/daemon.c @@ -13,7 +13,6 @@ #include #include #include -#include #include "common.h" #include "appconfig.h"