[vlc-commits] compat: test: Fix strnstr tests
Hugo Beauzée-Luyssen
git at videolan.org
Wed Dec 9 20:39:35 CET 2015
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Dec 9 20:38:37 2015 +0100| [12ee303dcada22ca5e44d6eccd4e8fd2d04888ce] | committer: Hugo Beauzée-Luyssen
compat: test: Fix strnstr tests
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12ee303dcada22ca5e44d6eccd4e8fd2d04888ce
---
compat/test/strnstr.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/compat/test/strnstr.c b/compat/test/strnstr.c
index 8b60f1a..eb0337a 100644
--- a/compat/test/strnstr.c
+++ b/compat/test/strnstr.c
@@ -23,14 +23,13 @@
#include "config.h"
#include <stdbool.h>
+#undef NDEBUG
#include <assert.h>
#include <string.h>
const char* haystack = "Lorem ipsum dolor sit amet";
-void test( const char* haystack, const char* needle, size_t len, bool res );
-
-void test( const char* haystack, const char* needle, size_t len, bool res )
+static void test( const char* haystack, const char* needle, size_t len, bool res )
{
if ( len == 0 )
len = strlen( haystack );
More information about the vlc-commits
mailing list