summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-08-12 21:50:36 +0100
committerVincent Sanders <vince@kyllikki.org>2012-08-12 21:52:39 +0100
commitde982b4d3e9c7e6b6f100e383d647f0edc9321a3 (patch)
tree40ec7004a0df0b5c6d55d12b7c3bb20501ad21c8 /content
parent786a5186aa38897170317d453bf49b55cf8e70a3 (diff)
downloadnetsurf-de982b4d3e9c7e6b6f100e383d647f0edc9321a3.tar.gz
netsurf-de982b4d3e9c7e6b6f100e383d647f0edc9321a3.tar.bz2
fix windows build format specifiers
add install target for windows - creates installer rather than actually installing
Diffstat (limited to 'content')
-rw-r--r--content/fetchers/data.c2
-rw-r--r--content/fetchers/file.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/content/fetchers/data.c b/content/fetchers/data.c
index 383e3c0c5..3f8989e8c 100644
--- a/content/fetchers/data.c
+++ b/content/fetchers/data.c
@@ -280,7 +280,7 @@ static void fetch_data_poll(lwc_string *scheme)
if (c->aborted == false) {
snprintf(header, sizeof header,
- "Content-Length: %zd",
+ "Content-Length: %"SSIZET_FMT,
c->datalen);
msg.type = FETCH_HEADER;
msg.data.header_or_data.buf =
diff --git a/content/fetchers/file.c b/content/fetchers/file.c
index e3bb63ea8..4deb93248 100644
--- a/content/fetchers/file.c
+++ b/content/fetchers/file.c
@@ -266,7 +266,7 @@ static void fetch_file_process_plain(struct fetch_file_context *ctx,
return;
}
- fd = open(ctx->path, O_RDONLY);
+ fd = open(ctx->path, O_RDONLY | O_BINARY);
if (fd < 0) {
/* process errors as appropriate */
fetch_file_process_error(ctx,
@@ -304,7 +304,7 @@ static void fetch_file_process_plain(struct fetch_file_context *ctx,
goto fetch_file_process_aborted;
/* content length */
- if (fetch_file_send_header(ctx, "Content-Length: %zd", fdstat->st_size))
+ if (fetch_file_send_header(ctx, "Content-Length: %"SSIZET_FMT, fdstat->st_size))
goto fetch_file_process_aborted;
/* create etag */