X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fntdb%2Ftest%2Ffailtest_helper.c;h=ab7e61b0d7ff9b32419479e8671a83bea4a07785;hp=45b24512e9936ae8b01ba8b45e7947764cc94886;hb=8ccb14db10cfedc5c97c9222a7955cee8246b741;hpb=401bed521f80ca1145aafcddc1c532f05de5d313 diff --git a/ccan/ntdb/test/failtest_helper.c b/ccan/ntdb/test/failtest_helper.c index 45b24512..ab7e61b0 100644 --- a/ccan/ntdb/test/failtest_helper.c +++ b/ccan/ntdb/test/failtest_helper.c @@ -5,15 +5,6 @@ bool failtest_suppress = false; -/* FIXME: From ccan/str */ -static inline bool strends(const char *str, const char *postfix) -{ - if (strlen(str) < strlen(postfix)) - return false; - - return !strcmp(str + strlen(str) - strlen(postfix), postfix); -} - bool failmatch(const struct failtest_call *call, const char *file, int line, enum failtest_call_type type) {