diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-06-01 23:38:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 23:38:41 +0300 |
commit | 81832edce2b2c0cb8a76ae1d69b99086c974005c (patch) | |
tree | 56dede491cd093e36cd1cc278ea2da16d810e3fe /libnetdata/inlined.h | |
parent | 7784a16cc7af8260bb8877873a60d7dc6d2c9e73 (diff) |
coverity fixes about statsd; removal of strsame (#13049)
Diffstat (limited to 'libnetdata/inlined.h')
-rw-r--r-- | libnetdata/inlined.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libnetdata/inlined.h b/libnetdata/inlined.h index 6f236b8f47..7e7d8ebede 100644 --- a/libnetdata/inlined.h +++ b/libnetdata/inlined.h @@ -222,19 +222,6 @@ static inline long double str2ld(const char *s, char **endptr) { } } -#ifdef NETDATA_STRCMP_OVERRIDE -#ifdef strcmp -#undef strcmp -#endif -#define strcmp(a, b) strsame(a, b) -#endif // NETDATA_STRCMP_OVERRIDE - -static inline int strsame(const char *a, const char *b) { - if(unlikely(a == b)) return 0; - while(*a && *a == *b) { a++; b++; } - return *a - *b; -} - static inline char *strncpyz(char *dst, const char *src, size_t n) { char *p = dst; |