fixup haiku rsrc fetcher initialisation

This commit is contained in:
Vincent Sanders 2014-09-05 00:40:52 +01:00
parent 58c2ca0624
commit b99ba0998b
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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.
*