X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.h;h=6981d21d7aad6371fafda10f2ae7a68616ccaa7d;hb=354f9991530248e45207d236eb74c1cc3d5238ef;hp=c3f7f5485cb5888ed7a95634e538ff9c35b82d46;hpb=8eb05d21637cd1eb3b6c4c4d3ed519cc2fd3ebf6;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