diff options
Diffstat (limited to 'src/pluginlist.c')
-rw-r--r-- | src/pluginlist.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pluginlist.c b/src/pluginlist.c index d4cd058..da003a5 100644 --- a/src/pluginlist.c +++ b/src/pluginlist.c @@ -17,13 +17,11 @@ */ #define _XOPEN_SOURCE 500 -#include <limits.h> #include <string.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> -#include <sys/types.h> #include <assert.h> -#include <dirent.h> #include <librdf.h> #include <slv2/types.h> #include <slv2/plugin.h> @@ -308,8 +306,6 @@ slv2_plugins_get_by_uri(SLV2Plugins list, const char* uri) SLV2Plugin slv2_plugins_get_at(SLV2Plugins list, unsigned index) { - assert(list); - if (index > INT_MAX) return NULL; else |