diff options
author | Shawn Landden <shawnlandden@gmail.com> | 2013-08-21 18:20:55 -0700 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-08-22 00:52:14 -0400 |
commit | 2a0e0692565f0435657c93498e09cbb2d3517152 (patch) | |
tree | d5fb3d6352aed75b11b2e38dc65486016ff88357 /src/shared/macro.h | |
parent | 67c15b9a7ac016ac5c9b885756b2eaa7f44a0509 (diff) |
remove hasprefix(), use startswith()
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index 0d3ff1cda5..d4f92b60ec 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -186,8 +186,6 @@ static inline size_t ALIGN_TO(size_t l, size_t ali) { #define char_array_0(x) x[sizeof(x)-1] = 0; -#define hasprefix(s, prefix) (memcmp(s, prefix, strlen(prefix)) == 0) - #define IOVEC_SET_STRING(i, s) \ do { \ struct iovec *_i = &(i); \ |