X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.h;h=8079661a9b56aef666fb8499f90ea22fd9ca7317;hb=1bdfcf9791729310f75857d0e002c40ef659a89b;hp=c3f7f5485cb5888ed7a95634e538ff9c35b82d46;hpb=b76f88c5bafa82e3c939eb65c13acd431e07cc01;p=collectd.git diff --git a/src/daemon/common.h b/src/daemon/common.h index c3f7f548..8079661a 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -29,6 +29,7 @@ #define COMMON_H #include "collectd.h" + #include "plugin.h" #if HAVE_PWD_H @@ -37,9 +38,7 @@ #define sfree(ptr) \ do { \ - if((ptr) != NULL) { \ - free(ptr); \ - } \ + free(ptr); \ (ptr) = NULL; \ } while (0) @@ -224,8 +223,6 @@ int escape_string (char *buffer, size_t buffer_size); */ void replace_special (char *buffer, size_t buffer_size); -int strsubstitute (char *str, char c_from, char c_to); - /* * NAME * strunescape