diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-22 23:19:57 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-23 00:00:18 +0000 |
commit | 047569339406f2be1637ae4cee5dd0c9a9c2328f (patch) | |
tree | 3d3909b4bc3d27cd7a9e146d32539ce752b33310 /content/fetchers/file.c | |
parent | 4684e9665d2ddff50f4a8e9a16d73224d2617180 (diff) | |
download | netsurf-047569339406f2be1637ae4cee5dd0c9a9c2328f.tar.gz netsurf-047569339406f2be1637ae4cee5dd0c9a9c2328f.tar.bz2 |
create table for fetcher operations and move all operations into it
Diffstat (limited to 'content/fetchers/file.c')
-rw-r--r-- | content/fetchers/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/fetchers/file.c b/content/fetchers/file.c index 26ef9069b..83c408e5a 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -305,7 +305,7 @@ static void fetch_file_process_plain(struct fetch_file_context *ctx, /* content type */ if (fetch_file_send_header(ctx, "Content-Type: %s", - fetch_filetype(ctx->path))) + guit->fetch->filetype(ctx->path))) goto fetch_file_process_aborted; /* content length */ @@ -385,7 +385,7 @@ fetch_file_process_aborted: /* content type */ if (fetch_file_send_header(ctx, "Content-Type: %s", - fetch_filetype(ctx->path))) + guit->fetch->filetype(ctx->path))) goto fetch_file_process_aborted; /* content length */ @@ -575,7 +575,7 @@ static void fetch_file_process_dir(struct fetch_file_context *ctx, continue; strncpy(urlpath, ctx->path, sizeof urlpath); - if (guit->browser->path_add_part(urlpath, sizeof urlpath, + if (guit->fetch->path_add_part(urlpath, sizeof urlpath, ent->d_name) == false) continue; @@ -608,7 +608,7 @@ static void fetch_file_process_dir(struct fetch_file_context *ctx, false, path, ent->d_name, - fetch_filetype(urlpath), + guit->fetch->filetype(urlpath), ent_stat.st_size, datebuf, timebuf, buffer, sizeof(buffer)); |