diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-10-03 19:41:14 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-10-03 19:41:14 +0100 |
commit | f22da7670d22d17337c1a2aebb924305b08ede2c (patch) | |
tree | 0f6d7d51be8b0eb2ddd23f5ff0f67c3281a7c378 | |
parent | c1671f37b1a6b8872d736bfdcee25770dbbd5a06 (diff) | |
download | netsurf-f22da7670d22d17337c1a2aebb924305b08ede2c.tar.gz netsurf-f22da7670d22d17337c1a2aebb924305b08ede2c.tar.bz2 |
fix missing sizeof() in amiga build
fix type warning by passing correct value
-rw-r--r-- | amiga/plugin_hack.c | 2 | ||||
-rw-r--r-- | render/box_construct.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c index 830d2f614..f78a67e2d 100644 --- a/amiga/plugin_hack.c +++ b/amiga/plugin_hack.c @@ -100,7 +100,7 @@ nserror amiga_plugin_hack_create(const content_handler *handler, amiga_plugin_hack_content *plugin; nserror error; - plugin = calloc(1, amiga_plugin_hack_content); + plugin = calloc(1, sizeof(amiga_plugin_hack_content)); if (plugin == NULL) return NSERROR_NOMEM; diff --git a/render/box_construct.c b/render/box_construct.c index c34c0af96..8b54fc8d4 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2050,7 +2050,7 @@ bool box_frameset(BOX_SPECIAL_PARAMS) if (!content->frameset) return false; - ok = box_create_frameset(content->frameset, n, content->bctx); + ok = box_create_frameset(content->frameset, n, content); if (ok) box->type = BOX_NONE; |