From 11de9b606bb47c84b8960835d1d8dbfdb53dfbdd Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 7 Nov 2013 03:56:29 +0100 Subject: [PATCH] Fix a type and add some consts Signed-off-by: Sebastian Ramacher --- render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render.c b/render.c index e9fbc1f..625de6c 100644 --- a/render.c +++ b/render.c @@ -663,7 +663,7 @@ render(ZathuraRenderRequest* request, ZathuraRenderer* renderer) recolor(priv, page_width, page_height, surface); } - emit_completed_signal_t* ecs = g_malloc(sizeof(ecs)); + emit_completed_signal_t* ecs = g_malloc(sizeof(emit_completed_signal_t)); ecs->renderer = g_object_ref(renderer); ecs->request = g_object_ref(request); ecs->surface = cairo_surface_reference(surface); @@ -715,8 +715,8 @@ render_all(zathura_t* zathura) zathura_page_t* page = zathura_document_get_page(zathura->document, page_id); unsigned int page_height = 0, page_width = 0; - double height = zathura_page_get_height(page); - double width = zathura_page_get_width(page); + const double height = zathura_page_get_height(page); + const double width = zathura_page_get_width(page); page_calc_height_width(zathura->document, height, width, &page_height, &page_width, true); GtkWidget* widget = zathura_page_get_widget(zathura, page);