X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.h;h=6981d21d7aad6371fafda10f2ae7a68616ccaa7d;hb=c1e610803799c42a121f4b6374a202d6612a1286;hp=c3f7f5485cb5888ed7a95634e538ff9c35b82d46;hpb=b66d5b90a0e59e943a61acb4b68ce55e88f08ade;p=collectd.git diff --git a/src/daemon/common.h b/src/daemon/common.h index c3f7f548..6981d21d 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -37,9 +37,7 @@ #define sfree(ptr) \ do { \ - if((ptr) != NULL) { \ - free(ptr); \ - } \ + free(ptr); \ (ptr) = NULL; \ } while (0) @@ -224,8 +222,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