From b99ba0998b602928548e36ce9ae486d7338ba11e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 5 Sep 2014 00:40:52 +0100 Subject: fixup haiku rsrc fetcher initialisation --- beos/fetch_rsrc.cpp | 7 ++++++- content/fetch.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/beos/fetch_rsrc.cpp b/beos/fetch_rsrc.cpp index 9461f5c79..f2224d1ba 100644 --- a/beos/fetch_rsrc.cpp +++ b/beos/fetch_rsrc.cpp @@ -359,6 +359,8 @@ void fetch_rsrc_register(void) { lwc_string *scheme; int err; + nserror ret; + const struct fetcher_operation_table fetcher_ops_rsrc = { fetch_rsrc_initialise, fetch_rsrc_can_fetch, @@ -382,7 +384,10 @@ void fetch_rsrc_register(void) "(couldn't intern \"rsrc\")."); } - fetcher_add(scheme, &fetcher_ops_rsrc); + ret = fetcher_add(scheme, &fetcher_ops_rsrc); + if (ret != NSERROR_OK) { + die("unable to add rsrc fetcher."); + } } void fetch_rsrc_unregister(void) diff --git a/content/fetch.c b/content/fetch.c index e10f0abcb..9a0796294 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -71,7 +71,7 @@ #endif /** The maximum number of fetchers that can be added */ -#define MAX_FETCHERS 8 +#define MAX_FETCHERS 10 /** The time in ms between polling the fetchers. * -- cgit v1.2.3