Code

Merge branch 'collectd-5.5'
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 1 Mar 2016 11:47:25 +0000 (12:47 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 1 Mar 2016 11:47:25 +0000 (12:47 +0100)
1  2 
src/barometer.c
src/daemon/collectd.c
src/daemon/plugin.h
src/daemon/utils_cache.c
src/redis.c
src/write_riemann.c
src/write_riemann_threshold.c
src/write_sensu.c

diff --cc src/barometer.c
Simple merge
index 7b324e1e3a6513b47bf453e634c91bedfa831bea,6e625bbb04cdc062f87335a45153523a6cf75c57..a745d7d1ad367c93bf9d823f78298b68e0ccba93
@@@ -422,9 -423,9 +422,9 @@@ static int pidfile_remove (void
  #endif /* COLLECT_DAEMON */
  
  #ifdef KERNEL_LINUX
- int notify_upstart (void)
static int notify_upstart (void)
  {
 -    const char  *upstart_job = getenv("UPSTART_JOB");
 +    char const *upstart_job = getenv("UPSTART_JOB");
  
      if (upstart_job == NULL)
          return 0;
      return 1;
  }
  
- int notify_systemd (void)
static int notify_systemd (void)
  {
 -    int                  fd = -1;
 -    const char          *notifysocket = getenv("NOTIFY_SOCKET");
 +    int                  fd;
 +    const char          *notifysocket;
      struct sockaddr_un   su;
 -    struct iovec         iov;
 -    struct msghdr        hdr;
 +    size_t               su_size;
 +    char                 buffer[] = "READY=1\n";
  
 +    notifysocket = getenv ("NOTIFY_SOCKET");
      if (notifysocket == NULL)
          return 0;
  
Simple merge
Simple merge
diff --cc src/redis.c
Simple merge
index 5c59c92e4c50341c27fcb380188363685783d5d6,58611a96fe2ec40adff997503eea1ae8dcf2284b..6a47ba3224cd52d6bbf5d75ca24cf73af6d55f41
   *   Florian octo Forster <octo at collectd.org>
   */
  
 -#include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <errno.h>
+ #include <netdb.h>
+ #include <inttypes.h>
+ #include <pthread.h>
  #include "collectd.h"
  #include "plugin.h"
  #include "common.h"
Simple merge
Simple merge