From 6725dcf5abd08d3563683ac17591969c5bd45290 Mon Sep 17 00:00:00 2001 From: hasufell Date: Fri, 9 May 2014 17:53:25 +0200 Subject: [PATCH] Make parameters const where possible --- src/gl_draw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gl_draw.c b/src/gl_draw.c index 7bd88b6..6e434fe 100644 --- a/src/gl_draw.c +++ b/src/gl_draw.c @@ -91,7 +91,7 @@ static HE_vert *find_center(HE_obj const * const obj) * * @param obj the object of which we will draw the vertices */ -static void draw_vertices(HE_obj *obj) +static void draw_vertices(HE_obj const * const obj) { for (uint32_t i = 0; i < obj->fc; i++) { /* for all faces */ HE_edge *tmp_edge = obj->faces[i].edge; @@ -111,7 +111,9 @@ static void draw_vertices(HE_obj *obj) * @param myyrot rotation increment around x-axis * @param myzrot rotation increment around x-axis */ -static void draw_obj(uint32_t myxrot, uint32_t myyrot, uint32_t myzrot) +static void draw_obj(uint32_t const myxrot, + const uint32_t myyrot, + const uint32_t myzrot) { static uint32_t xrot = 0, yrot = 0,