summaryrefslogtreecommitdiff
path: root/src/nav.c
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-09-09 22:46:26 +0000
committercorvid <corvid@lavabit.com>2011-09-09 22:46:26 +0000
commit385da8286ca8f001a6f734dd322e5957ba50b63b (patch)
treecb8efd5ffe7330e923c46dfd417f0c77356856a3 /src/nav.c
parent453b40b9ac2cab77f711286a0d7bd05197ec9499 (diff)
tiny a_Web_new() cleanup
Diffstat (limited to 'src/nav.c')
-rw-r--r--src/nav.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nav.c b/src/nav.c
index 8dbb5044..bea90dd3 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -232,8 +232,7 @@ static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url,
// a_Menu_pagemarks_new(bw);
- Web = a_Web_new(url, requester);
- Web->bw = bw;
+ Web = a_Web_new(bw, url, requester);
Web->flags |= WEB_RootUrl;
if ((ClientKey = a_Capi_open_url(Web, NULL, NULL)) != 0) {
a_Bw_add_client(bw, ClientKey, 1);
@@ -566,8 +565,7 @@ static void Nav_save_cb(int Op, CacheClient_t *Client)
void a_Nav_save_url(BrowserWindow *bw,
const DilloUrl *url, const char *filename)
{
- DilloWeb *Web = a_Web_new(url, NULL);
- Web->bw = bw;
+ DilloWeb *Web = a_Web_new(bw, url, NULL);
Web->filename = dStrdup(filename);
Web->flags |= WEB_Download;
/* TODO: keep track of this client */