collectd.git
8 years agoDo not link test_plugin_ceph with libcommon
Ruben Kerkhof [Wed, 25 May 2016 16:28:57 +0000 (18:28 +0200)]
Do not link test_plugin_ceph with libcommon

Linking with libplugin_mock is enough since
that one already links with libcommon

8 years agoSet subdir-objects globally instead of per Makefile
Ruben Kerkhof [Wed, 25 May 2016 15:55:15 +0000 (17:55 +0200)]
Set subdir-objects globally instead of per Makefile

8 years agoMakefile.am: Link tests with required libraries, too.
Florian Forster [Thu, 11 Jun 2015 13:35:43 +0000 (14:35 +0100)]
Makefile.am: Link tests with required libraries, too.

"make check" fails on Solaris because libraries are missing:

      CCLD     test_common
    Undefined first referenced
     symbol   in file
    kc                          ./.libs/libcommon.a(common.o)
    kstat_data_lookup           ./.libs/libcommon.a(common.o)
    kstat_lookup                ./.libs/libcommon.a(common.o)
    kstat_read                  ./.libs/libcommon.a(common.o)
    getaddrinfo                 ./.libs/libcommon.a(common.o)
    freeaddrinfo                ./.libs/libcommon.a(common.o)
    gai_strerror                ./.libs/libcommon.a(common.o)
    ld: fatal: symbol referencing errors. No output written to test_common
    collect2: error: ld returned 1 exit status

(cherry picked from commit 6213557b1d5c79a60e9c4322263836ca6066aa0e)

8 years agobuild: add libavltree, libcommon & libheap dependencies
Gustavo Zacarias [Mon, 6 Jul 2015 12:59:30 +0000 (09:59 -0300)]
build: add libavltree, libcommon & libheap dependencies

Otherwise it can break on very parallel builds since collectd link time
arrives before one or more of these were built.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
(cherry picked from commit 780e6a76021a240e95007a04b723d827120afa95)

8 years agoFix a typo that snuck in with 0c8d275
Ruben Kerkhof [Wed, 25 May 2016 15:26:13 +0000 (17:26 +0200)]
Fix a typo that snuck in with 0c8d275

Always test before committing...

Pointy hat to: me

8 years agoLink libcommon.la with $(COMMON_LIBS).
Florian Forster [Tue, 14 Jul 2015 07:00:49 +0000 (09:00 +0200)]
Link libcommon.la with $(COMMON_LIBS).

This hopefully fixes link errors on Solaris:

  CCLD     test_utils_vl_lookup
Undefined first referenced
 symbol       in file
kstat_data_lookup                   daemon/.libs/libcommon.a(common.o)
kstat_lookup                        daemon/.libs/libcommon.a(common.o)
kstat_read                          daemon/.libs/libcommon.a(common.o)
getaddrinfo                         daemon/.libs/libcommon.a(common.o)
freeaddrinfo                        daemon/.libs/libcommon.a(common.o)
gai_strerror                        daemon/.libs/libcommon.a(common.o)
ld: fatal: symbol referencing errors. No output written to test_utils_vl_lookup
collect2: error: ld returned 1 exit status

(cherry picked from commit fe2eee98f4b1cf8c5a5df6ed6cd03d8487c695be)

Conflicts:
src/daemon/Makefile.am

8 years agoMerge branch 'collectd-5.5'
Ruben Kerkhof [Wed, 25 May 2016 14:54:54 +0000 (16:54 +0200)]
Merge branch 'collectd-5.5'

Conflicts:
configure.ac

8 years agoMerge branch 'collectd-5.4' into collectd-5.5
Ruben Kerkhof [Wed, 25 May 2016 14:53:06 +0000 (16:53 +0200)]
Merge branch 'collectd-5.4' into collectd-5.5

8 years agoMerge pull request #1726 from rubenk/udev
Ruben Kerkhof [Wed, 25 May 2016 14:52:34 +0000 (16:52 +0200)]
Merge pull request #1726 from rubenk/udev

Udev

8 years agoprocesses: re-add <sys/user.h> inclusion
Marc Fournier [Wed, 25 May 2016 14:28:01 +0000 (16:28 +0200)]
processes: re-add <sys/user.h> inclusion

cf #1725

8 years agoStop hardcoding libudev
Ruben Kerkhof [Wed, 25 May 2016 14:15:32 +0000 (16:15 +0200)]
Stop hardcoding libudev

8 years agoAdd missing udev flags to Makefile.am
Ruben Kerkhof [Wed, 25 May 2016 14:13:55 +0000 (16:13 +0200)]
Add missing udev flags to Makefile.am

8 years agoMerge branch 'collectd-5.4' into collectd-5.5
Marc Fournier [Wed, 25 May 2016 14:13:10 +0000 (16:13 +0200)]
Merge branch 'collectd-5.4' into collectd-5.5

8 years agoprocesses: MAXCOMLEN is not exposed on Solaris
Ruben Kerkhof [Wed, 25 May 2016 14:00:51 +0000 (16:00 +0200)]
processes: MAXCOMLEN is not exposed on Solaris

MAXCOMLEN in <sys/user.h> is only exposed to kernel
code. I think it's safe to assume that it isn't going
to change, so just hardcode it.

8 years agoMerge pull request #1724 from rpv-tomsk/smart-plugin-udev-dep
Ruben Kerkhof [Wed, 25 May 2016 13:47:59 +0000 (15:47 +0200)]
Merge pull request #1724 from rpv-tomsk/smart-plugin-udev-dep

Fix for #1688 The SMART plugin does not build/load, v.5.5.0

8 years agosmart plugin: Check for libudev presence
Pavel Rochnyack [Wed, 25 May 2016 13:01:46 +0000 (19:01 +0600)]
smart plugin: Check for libudev presence

8 years agoMerge pull request #1723 from rpv-tomsk/disk-plugin
Ruben Kerkhof [Wed, 25 May 2016 11:57:11 +0000 (13:57 +0200)]
Merge pull request #1723 from rpv-tomsk/disk-plugin

Disk plugin: UdevNameAttr feature improvements

8 years agodisk plugin: Initialize udev context only once, not per each read
Pavel Rochnyack [Wed, 25 May 2016 07:54:46 +0000 (13:54 +0600)]
disk plugin: Initialize udev context only once, not per each read

8 years agodisk plugin: Call disk_udev_attr_name() only when UdevNameAttr configured
Pavel Rochnyack [Wed, 25 May 2016 07:15:31 +0000 (13:15 +0600)]
disk plugin: Call disk_udev_attr_name() only when UdevNameAttr configured

8 years agocollectd.conf.in: remove extraneous pound sign
Marc Fournier [Fri, 20 May 2016 20:30:54 +0000 (22:30 +0200)]
collectd.conf.in: remove extraneous pound sign

8 years agoMerge branch 'collectd-5.5'
Ruben Kerkhof [Fri, 20 May 2016 10:51:25 +0000 (12:51 +0200)]
Merge branch 'collectd-5.5'

8 years agoMerge branch 'collectd-5.4' into collectd-5.5
Ruben Kerkhof [Fri, 20 May 2016 10:50:02 +0000 (12:50 +0200)]
Merge branch 'collectd-5.4' into collectd-5.5

8 years agoutils_cache.c: fix FORMAT_VL failed ERROR messages
Birger Schmidt [Mon, 16 May 2016 06:39:38 +0000 (08:39 +0200)]
utils_cache.c: fix FORMAT_VL failed ERROR messages

8 years agokill correct pid on fdopen failure
ciomaire [Tue, 3 May 2016 11:41:14 +0000 (13:41 +0200)]
kill correct pid on fdopen failure

8 years agopostgresql plugin: Improve documentation about Result blocks
Pavel Rochnyack [Thu, 12 May 2016 12:34:56 +0000 (18:34 +0600)]
postgresql plugin: Improve documentation about Result blocks

8 years agoutils_db_query (postgresql/dbi/oracle plugins): Add PluginInstanceFrom option
Pavel Rochnyack [Wed, 11 May 2016 16:41:27 +0000 (22:41 +0600)]
utils_db_query (postgresql/dbi/oracle plugins): Add PluginInstanceFrom option

8 years agoMerge branch 'collectd-5.5'
Ruben Kerkhof [Tue, 10 May 2016 09:53:28 +0000 (11:53 +0200)]
Merge branch 'collectd-5.5'

8 years agoMerge branch 'collectd-5.4' into collectd-5.5
Ruben Kerkhof [Tue, 10 May 2016 09:52:36 +0000 (11:52 +0200)]
Merge branch 'collectd-5.4' into collectd-5.5

Conflicts:
src/Makefile.am

8 years agorrdtool plugin: fix thread-safety detection
Ruben Kerkhof [Sat, 23 Apr 2016 15:35:39 +0000 (17:35 +0200)]
rrdtool plugin: fix thread-safety detection

librrd 1.6.0 is now threadsafe and librrd_th is gone.

Since there doesn't seem to be a way to detect that librrd
is threadsafe, use pkg-config to check for 1.6.0 or newer instead.

The logic is now as follows:
Check for librrd >= 1.6.0 with pkg-config
If not found, look for rrd_update_r in librrd_th.
If not found, look for rrd_update in librrd and assume librrd is not
thread safe.

(cherry picked from commit ef43260cd901847220c2a9de400579ff903ca13e)

Conflicts:
src/Makefile.am

8 years agorrdtool check: stop linking in libm
Ruben Kerkhof [Sat, 23 Apr 2016 13:06:03 +0000 (15:06 +0200)]
rrdtool check: stop linking in libm

(cherry picked from commit 32c0ce39f786c56e9d13f3615253a7ae55b578e6)

8 years agorrdtool check: no need to save CPPFLAGS
Ruben Kerkhof [Sat, 23 Apr 2016 13:03:03 +0000 (15:03 +0200)]
rrdtool check: no need to save CPPFLAGS

There's no need to save CPPFLAGS when we're just
checking a library.

(cherry picked from commit f7e09269879b74e61324de9178503221b2df9136)

8 years agorrdtool check: no need to save LDFLAGS
Ruben Kerkhof [Sat, 23 Apr 2016 13:00:26 +0000 (15:00 +0200)]
rrdtool check: no need to save LDFLAGS

There's no need to save LDFLAGS when we're just
checking a header.

(cherry picked from commit 38068ecc7922ace29bb6af3f8ee5568c3fe96c08)

8 years agoMerge pull request #1308 from mfournier/openldap-persistent-connection
Marc Fournier [Tue, 10 May 2016 08:24:29 +0000 (10:24 +0200)]
Merge pull request #1308 from mfournier/openldap-persistent-connection

Openldap: persistent connection + sane default timeout

8 years agoMerge pull request #1686 from rubenk/zfs-arc
Marc Fournier [Tue, 10 May 2016 07:49:11 +0000 (09:49 +0200)]
Merge pull request #1686 from rubenk/zfs-arc

Zfs arc

8 years agoapcups: define default server timeout as a constant
Marc Fournier [Tue, 10 May 2016 07:21:10 +0000 (09:21 +0200)]
apcups: define default server timeout as a constant

8 years agoMerge remote-tracking branch 'origin/pr/1701'
Marc Fournier [Tue, 10 May 2016 07:15:20 +0000 (09:15 +0200)]
Merge remote-tracking branch 'origin/pr/1701'

8 years agobuild system: rename riemann-c to libriemann-client
Marc Fournier [Tue, 10 May 2016 06:33:42 +0000 (08:33 +0200)]
build system: rename riemann-c to libriemann-client

... to make this consistent with the other plugins

8 years agostatsd plugin: Fix deadlock on plugin shutdown (Issue #1703)
Pavel Rochnyack [Mon, 9 May 2016 09:15:26 +0000 (15:15 +0600)]
statsd plugin: Fix deadlock on plugin shutdown (Issue #1703)

8 years agoapcups plugin: Change "PersistentConnection" option default value depending on poll...
Pavel Rochnyack [Sun, 8 May 2016 08:10:08 +0000 (14:10 +0600)]
apcups plugin: Change "PersistentConnection" option default value depending on poll Interval.

8 years agoRevert "apcups plugin: Handle "END APC" lines correctly and stop reading."
Pavel Rochnyack [Sun, 8 May 2016 06:53:35 +0000 (12:53 +0600)]
Revert "apcups plugin: Handle "END APC" lines correctly and stop reading."

This reverts commit fb075e15e3400afdb691b88f1e1a4a38578aaba9.

8 years agoMerge pull request #1695 from collectd/feature/fix-keyless-kafka-produce
Pierre-Yves Ritschard [Wed, 4 May 2016 15:28:17 +0000 (17:28 +0200)]
Merge pull request #1695 from collectd/feature/fix-keyless-kafka-produce

write_kafka: reliability when no key provided

8 years agosrc/daemon/plugin.h: Define DATA_MAX_NAME_LEN conditionally.
Florian Forster [Wed, 4 May 2016 14:37:14 +0000 (16:37 +0200)]
src/daemon/plugin.h: Define DATA_MAX_NAME_LEN conditionally.

Issue: #1690

8 years agowrite_kafka: reliability when no key provided
Pierre-Yves Ritschard [Tue, 3 May 2016 07:59:22 +0000 (09:59 +0200)]
write_kafka: reliability when no key provided

8 years agoMerge branch 'collectd-5.5'
Marc Fournier [Mon, 2 May 2016 19:57:56 +0000 (21:57 +0200)]
Merge branch 'collectd-5.5'

8 years agoMore missing kstat usages
Dagobert Michelsen [Mon, 13 Jul 2015 10:12:07 +0000 (12:12 +0200)]
More missing kstat usages

8 years agoMerge branch 'collectd-5.5'
Marc Fournier [Mon, 2 May 2016 19:17:02 +0000 (21:17 +0200)]
Merge branch 'collectd-5.5'

8 years agoAdd missing kstat definitions
Dagobert Michelsen [Mon, 13 Jul 2015 10:00:10 +0000 (12:00 +0200)]
Add missing kstat definitions

8 years agoTake out explicit definitions as they are already checked via enable_standards in...
Dagobert Michelsen [Thu, 18 Jun 2015 13:28:36 +0000 (15:28 +0200)]
Take out explicit definitions as they are already checked via enable_standards in configure.ac.

Fixes: #978

8 years agocollectd-tg: Move _POSIX_C_SOURCE and friends to the Makefile.
Florian Forster [Fri, 3 Jul 2015 10:31:32 +0000 (12:31 +0200)]
collectd-tg: Move _POSIX_C_SOURCE and friends to the Makefile.

Apparently defining this in the source files confuses Solaris' libc.
Thanks to @dago for looking into this.

Hopefully fixes: #978

8 years agoMerge branch 'collectd-5.5'
Marc Fournier [Mon, 2 May 2016 14:14:48 +0000 (16:14 +0200)]
Merge branch 'collectd-5.5'

8 years agoprocesses: remove initialisation of unexisting variables
Marc Fournier [Mon, 2 May 2016 14:07:47 +0000 (16:07 +0200)]
processes: remove initialisation of unexisting variables

Partial revert of 1f0156c, which broke the build on Solaris and OpenBSD.
The context-switch reporting code is only part of master at the moment.

Fixes: #1674

8 years agoModify the -T command line option so it watches for more errors. (#1642)
coreykosak [Mon, 2 May 2016 13:48:09 +0000 (09:48 -0400)]
Modify the -T command line option so it watches for more errors. (#1642)

After this change, the following kinds of errors will cause collectd -T to
exit with an abnormal status:
- errors reading the config file
- errors reading types.db
- errors on plugin_init
- errors on plugin_shutdown

8 years agoFixed indentation to match collectd's coding style
Claudius Zingerli [Fri, 29 Apr 2016 13:52:53 +0000 (15:52 +0200)]
Fixed indentation to match collectd's coding style

8 years agoAdded license notes
Claudius Zingerli [Fri, 29 Apr 2016 13:04:09 +0000 (15:04 +0200)]
Added license notes

8 years agoFix: Added config.h include, Fixed indentation
Claudius Zingerli [Tue, 16 Feb 2016 13:46:03 +0000 (14:46 +0100)]
Fix: Added config.h include, Fixed indentation

8 years agoSurround incs with #if HAVE_xxx, removed unneeded casts, added lic note
Claudius Zingerli [Tue, 16 Feb 2016 13:27:14 +0000 (14:27 +0100)]
Surround incs with #if HAVE_xxx, removed unneeded casts, added lic note

8 years agoFixed seq nr display
Claudius Zingerli [Fri, 12 Feb 2016 23:56:58 +0000 (00:56 +0100)]
Fixed seq nr display

8 years agoSquashed-Commit: Cleanup consts/enums, reduced magic const usage, NULL
Claudius Zingerli [Sun, 6 Sep 2015 16:27:52 +0000 (18:27 +0200)]
Squashed-Commit: Cleanup consts/enums, reduced magic const usage, NULL
checks, Added sequence number randomization, Fixed 32bit builds, Fixed
reachability checks (push NAN data if clock source is not reachable)
Doc: Removed comments about seq nr check (implemented randomization)

8 years ago- Working on tracking info (WIP!)
Claudius Zingerli [Wed, 16 Dec 2015 14:14:37 +0000 (15:14 +0100)]
- Working on tracking info (WIP!)
- Code cleanup

8 years agoCode clean up and better structuring
Claudius Zingerli [Mon, 14 Dec 2015 17:10:46 +0000 (18:10 +0100)]
Code clean up and better structuring

8 years agoAdded docs
Claudius Zingerli [Mon, 7 Sep 2015 15:47:00 +0000 (17:47 +0200)]
Added docs

8 years agoFixed packet struct offsets
Claudius Zingerli [Mon, 7 Sep 2015 15:09:26 +0000 (17:09 +0200)]
Fixed packet struct offsets

8 years agoTransformed comments to <C90
Claudius Zingerli [Mon, 7 Sep 2015 14:18:48 +0000 (16:18 +0200)]
Transformed comments to <C90

8 years agoFirst alpha version of chrony plugin (added types to db)
Claudius Zingerli [Mon, 7 Sep 2015 14:03:20 +0000 (16:03 +0200)]
First alpha version of chrony plugin (added types to db)

8 years agoAdded debugging code
Claudius Zingerli [Sun, 6 Sep 2015 21:39:22 +0000 (23:39 +0200)]
Added debugging code

8 years agoAdded chrony fw
Claudius Zingerli [Sun, 6 Sep 2015 16:27:52 +0000 (18:27 +0200)]
Added chrony fw

8 years agoMerge pull request #8 from collectd/master
Claudius Zingerli [Fri, 29 Apr 2016 14:29:53 +0000 (16:29 +0200)]
Merge pull request #8 from collectd/master

Sync with upstream

8 years agoamqp plugin: prevent use after free
Ruben Kerkhof [Wed, 27 Apr 2016 14:18:30 +0000 (16:18 +0200)]
amqp plugin: prevent use after free

Found by scan-build:

amqp.c:1097:13: warning: Use of memory after it is freed
            camqp_config_free (conf);
            ^~~~~~~~~~~~~~~~~~~~~~~~

8 years agopf plugin: value stored in fd is never read
Ruben Kerkhof [Wed, 27 Apr 2016 12:56:42 +0000 (14:56 +0200)]
pf plugin: value stored in fd is never read

Found by scan-build:
pf.c:109:2: warning: Value stored to 'fd' is never read
        fd = -1;
        ^    ~~

8 years agoadd format attribute to varargs functions
Ruben Kerkhof [Wed, 27 Apr 2016 12:37:24 +0000 (14:37 +0200)]
add format attribute to varargs functions

8 years agotarget_set: mark function as static
Ruben Kerkhof [Wed, 27 Apr 2016 12:21:28 +0000 (14:21 +0200)]
target_set: mark function as static

8 years agozfs_arc plugin: get more MRU/MFU stats
Ruben Kerkhof [Wed, 27 Apr 2016 12:01:58 +0000 (14:01 +0200)]
zfs_arc plugin: get more MRU/MFU stats

8 years agozfs_arc plugin: get more sizes of various caches
Ruben Kerkhof [Wed, 27 Apr 2016 11:46:24 +0000 (13:46 +0200)]
zfs_arc plugin: get more sizes of various caches

8 years agozfs_arc plugin: get the target size of the MRU
Ruben Kerkhof [Wed, 27 Apr 2016 11:28:15 +0000 (13:28 +0200)]
zfs_arc plugin: get the target size of the MRU

Also known as 'p'

8 years agozfs_arc plugin: add memory_throttle_count stat
Ruben Kerkhof [Wed, 27 Apr 2016 11:07:38 +0000 (13:07 +0200)]
zfs_arc plugin: add memory_throttle_count stat

This tells you how often the ARC has been shrunk to release
memory for other processes.

8 years agozfs_arc plugin: fix indentation
Ruben Kerkhof [Wed, 27 Apr 2016 09:45:35 +0000 (11:45 +0200)]
zfs_arc plugin: fix indentation

8 years agozfs_arc plugin: cleanup defines
Ruben Kerkhof [Wed, 27 Apr 2016 09:44:22 +0000 (11:44 +0200)]
zfs_arc plugin: cleanup defines

8 years agoRPM specfile: take new xencpu plugin in account
Marc Fournier [Sun, 24 Apr 2016 21:50:22 +0000 (23:50 +0200)]
RPM specfile: take new xencpu plugin in account

8 years agoMerge pull request #1565 from rpv-tomsk/disk-plugin-ignorelist
Ruben Kerkhof [Sun, 24 Apr 2016 16:34:44 +0000 (18:34 +0200)]
Merge pull request #1565 from rpv-tomsk/disk-plugin-ignorelist

 * disk plugin: call ignorelist_match() once per device, not for each send metric

8 years ago * disk plugin: call ignorelist_match() once per device, not for each sent metric
Pavel Rochnyack [Thu, 25 Feb 2016 15:10:55 +0000 (22:10 +0700)]
 * disk plugin: call ignorelist_match() once per device, not for each sent metric

8 years agoMerge pull request #1546 from mfournier/processname_length_1284
Ruben Kerkhof [Sun, 24 Apr 2016 11:25:21 +0000 (13:25 +0200)]
Merge pull request #1546 from mfournier/processname_length_1284

processes: warn about process names above OS limit

8 years agoMerge pull request #1557 from rpv-tomsk/master
Ruben Kerkhof [Sun, 24 Apr 2016 10:49:46 +0000 (12:49 +0200)]
Merge pull request #1557 from rpv-tomsk/master

* Collectd::Unixsock: Split messages sent by flush() to 1024 byte chunks to not overflow buffer in unixsock.c us_handle_client().

8 years agoMerge pull request #1564 from rpv-tomsk/disk-plugin
Ruben Kerkhof [Sun, 24 Apr 2016 10:48:42 +0000 (12:48 +0200)]
Merge pull request #1564 from rpv-tomsk/disk-plugin

disk plugin: send disk_merged,disk_io_time,pending_operations only when real data exists for device

8 years agoAC_CONFIG_SRCDIR needs to point to a unique file
Ruben Kerkhof [Sat, 23 Apr 2016 19:28:31 +0000 (21:28 +0200)]
AC_CONFIG_SRCDIR needs to point to a unique file

AC_CONFIG_SRCDIR is a bit of a misnomer, in that it should
point to a unique file in the top source directory, not to
the directory itself.

8 years agorrdtool plugin: fix thread-safety detection
Ruben Kerkhof [Sat, 23 Apr 2016 15:35:39 +0000 (17:35 +0200)]
rrdtool plugin: fix thread-safety detection

librrd 1.6.0 is now threadsafe and librrd_th is gone.

Since there doesn't seem to be a way to detect that librrd
is threadsafe, use pkg-config to check for 1.6.0 or newer instead.

The logic is now as follows:
Check for librrd >= 1.6.0 with pkg-config
If not found, look for rrd_update_r in librrd_th.
If not found, look for rrd_update in librrd and assume librrd is not
thread safe.

8 years agoHAVE_THREADSAFE_LIBRRD is either defined or not
Ruben Kerkhof [Sat, 23 Apr 2016 13:22:52 +0000 (15:22 +0200)]
HAVE_THREADSAFE_LIBRRD is either defined or not

8 years agorrdtool check: stop linking in libm
Ruben Kerkhof [Sat, 23 Apr 2016 13:06:03 +0000 (15:06 +0200)]
rrdtool check: stop linking in libm

8 years agorrdtool check: no need to save CPPFLAGS
Ruben Kerkhof [Sat, 23 Apr 2016 13:03:03 +0000 (15:03 +0200)]
rrdtool check: no need to save CPPFLAGS

There's no need to save CPPFLAGS when we're just
checking a library.

8 years agorrdtool check: no need to save LDFLAGS
Ruben Kerkhof [Sat, 23 Apr 2016 13:00:26 +0000 (15:00 +0200)]
rrdtool check: no need to save LDFLAGS

There's no need to save LDFLAGS when we're just
checking a header.

8 years agoliboconfig: enable dependency tracking
Ruben Kerkhof [Sat, 23 Apr 2016 12:54:34 +0000 (14:54 +0200)]
liboconfig: enable dependency tracking

Nowadays there's no reason not too.
Also remove the foreign option, since we set that as default
in configure.ac already.

8 years agosfree: don't check for NULL before calling free
Ruben Kerkhof [Sat, 23 Apr 2016 12:08:07 +0000 (14:08 +0200)]
sfree: don't check for NULL before calling free

free(NULL) is safe to call

8 years agoMerge branch 'cppcheck'
Ruben Kerkhof [Sat, 23 Apr 2016 12:05:21 +0000 (14:05 +0200)]
Merge branch 'cppcheck'

8 years agobind plugin: space after realloc
Ruben Kerkhof [Sat, 23 Apr 2016 11:57:27 +0000 (13:57 +0200)]
bind plugin: space after realloc

8 years agoamqp: plug leak on realloc failure
Ruben Kerkhof [Sat, 23 Apr 2016 11:41:04 +0000 (13:41 +0200)]
amqp: plug leak on realloc failure

8 years agorealloc: remove unnecessary casts of return value
Ruben Kerkhof [Sat, 23 Apr 2016 11:35:09 +0000 (13:35 +0200)]
realloc: remove unnecessary casts of return value

8 years agomatch_value: condition is always true
Ruben Kerkhof [Sat, 23 Apr 2016 10:33:49 +0000 (12:33 +0200)]
match_value: condition is always true

[src/match_value.c:338]: (style) Condition 'value_matches==0' is always true

8 years agoapache plugin: len is unsigned
Ruben Kerkhof [Sat, 23 Apr 2016 10:13:21 +0000 (12:13 +0200)]
apache plugin: len is unsigned

[src/apache.c:140]: (style) Checking if unsigned variable 'len' is less than zero.

8 years agoascent plugin: len is unsigned
Ruben Kerkhof [Sat, 23 Apr 2016 10:12:31 +0000 (12:12 +0200)]
ascent plugin: len is unsigned

[src/ascent.c:157]: (style) Checking if unsigned variable 'len' is less than zero.

8 years agobattery plugin: remove assignment with no effect
Ruben Kerkhof [Sat, 23 Apr 2016 10:11:41 +0000 (12:11 +0200)]
battery plugin: remove assignment with no effect

[src/battery.c:361] -> [src/battery.c:372]: (performance) Variable 'capacity_charged' is reassigned a value before the old one has been used.

8 years agobind plugin: len is unsigned
Ruben Kerkhof [Sat, 23 Apr 2016 10:09:33 +0000 (12:09 +0200)]
bind plugin: len is unsigned

[src/bind.c:280]: (style) Checking if unsigned variable 'len' is less than zero.