Merge branch 'collectd-5.1'
authorFlorian Forster <octo@collectd.org>
Sat, 17 Nov 2012 11:41:34 +0000 (12:41 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 17 Nov 2012 11:41:34 +0000 (12:41 +0100)
1  2 
src/network.c

diff --combined src/network.c
   */
  #  pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  # endif
+ /* FreeBSD's copy of libgcrypt extends the existing GCRYPT_NO_DEPRECATED
+  * to properly hide all deprecated functionality.
+  * http://svnweb.freebsd.org/ports/head/security/libgcrypt/files/patch-src__gcrypt.h.in
+  */
+ # define GCRYPT_NO_DEPRECATED
  # include <gcrypt.h>
  # if defined __APPLE__
  /* Re enable deprecation warnings */
@@@ -3306,6 -3311,7 +3311,6 @@@ static int network_stats_read (void) /
        vl.values = values;
        vl.values_len = 2;
        vl.time = 0;
 -      vl.interval = interval_g;
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "network", sizeof (vl.plugin));
  
@@@ -3409,7 -3415,7 +3414,7 @@@ static int network_init (void
        if (dispatch_thread_running == 0)
        {
                int status;
 -              status = pthread_create (&dispatch_thread_id,
 +              status = plugin_thread_create (&dispatch_thread_id,
                                NULL /* no attributes */,
                                dispatch_thread,
                                NULL /* no argument */);
        if (receive_thread_running == 0)
        {
                int status;
 -              status = pthread_create (&receive_thread_id,
 +              status = plugin_thread_create (&receive_thread_id,
                                NULL /* no attributes */,
                                receive_thread,
                                NULL /* no argument */);