Browse Source

mem: switch descriptions for memeqzero/memeqstr

Closes: #32
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 10 years ago
parent
commit
2f00b7cc95
1 changed files with 5 additions and 5 deletions
  1. 5 5
      ccan/mem/mem.h

+ 5 - 5
ccan/mem/mem.h

@@ -144,7 +144,10 @@ static inline bool memstarts(void const *data, size_t data_len,
  *	}
  */
 PURE_FUNCTION
-bool memeqzero(const void *data, size_t length);
+static inline bool memeqstr(const void *data, size_t length, const char *string)
+{
+	return memeq(data, length, string, strlen(string));
+}
 
 /**
  * memeqzero - Is a byte array all zeroes?
@@ -157,10 +160,7 @@ bool memeqzero(const void *data, size_t length);
  *	}
  */
 PURE_FUNCTION
-static inline bool memeqstr(const void *data, size_t length, const char *string)
-{
-	return memeq(data, length, string, strlen(string));
-}
+bool memeqzero(const void *data, size_t length);
 
 /**
  * memstarts_str - Does this byte array start with a string prefix?