From 3c1e2c1777485909f29913d1ba6e60ac27fa3893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 10 Oct 2009 08:29:13 +0000 Subject: [PATCH] Make function arg const pointer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23063 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.c | 2 +- apps/gui/viewport.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index d91aa42762..d8e5d721e9 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -78,7 +78,7 @@ static unsigned viewport_init_ui_vp(void); #endif static void viewportmanager_redraw(void* data); -int viewport_get_nb_lines(struct viewport *vp) +int viewport_get_nb_lines(const struct viewport *vp) { #ifdef HAVE_LCD_BITMAP return vp->height/font_get(vp->font)->height; diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index 463de2b333..cedb27e01c 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h @@ -1,4 +1,3 @@ - /*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ @@ -30,7 +29,7 @@ #include "screen_access.h" /* return the number of text lines in the vp viewport */ -int viewport_get_nb_lines(struct viewport *vp); +int viewport_get_nb_lines(const struct viewport *vp); void viewport_set_defaults(struct viewport *vp, enum screen_type screen);