From 01c591fb84dff8c481dc5dc59420300880e37fcc Mon Sep 17 00:00:00 2001 From: Viliam Mateicka Date: Tue, 9 Dec 2008 17:36:10 +0100 Subject: utils: moving stringFoundInStringArray() from decoder into utils --- src/decoder_list.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/decoder_list.c') diff --git a/src/decoder_list.c b/src/decoder_list.c index c7f66289f..c70d6334c 100644 --- a/src/decoder_list.c +++ b/src/decoder_list.c @@ -18,6 +18,7 @@ #include "decoder_list.h" #include "decoder_api.h" +#include "utils.h" #include @@ -76,17 +77,6 @@ enum { /** which plugins have been initialized successfully? */ static bool decoder_plugins_enabled[num_decoder_plugins]; -static int stringFoundInStringArray(const char *const*array, const char *suffix) -{ - while (array && *array) { - if (strcasecmp(*array, suffix) == 0) - return 1; - array++; - } - - return 0; -} - const struct decoder_plugin * decoder_plugin_from_suffix(const char *suffix, unsigned int next) { -- cgit v1.2.3