summaryrefslogtreecommitdiff
path: root/progs/redbook/scene.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-12-21 15:20:01 -0800
committerVinson Lee <vlee@vmware.com>2009-12-21 15:20:01 -0800
commit07b54fe35b93ccfd9eebd2cebe637c20044200f2 (patch)
tree9489591db4a4e8b0d1559dc06fd25bc84e97fd28 /progs/redbook/scene.c
parent753f0a1dea6c304eb3cc5a3db5f24a5801e37a55 (diff)
progs/redbook: Silence compiler warnings.
Diffstat (limited to 'progs/redbook/scene.c')
-rw-r--r--progs/redbook/scene.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/redbook/scene.c b/progs/redbook/scene.c
index c3abc727b7..6f336a8db4 100644
--- a/progs/redbook/scene.c
+++ b/progs/redbook/scene.c
@@ -48,7 +48,7 @@
/* Initialize material property and light source.
*/
-void myinit (void)
+static void myinit (void)
{
GLfloat light_ambient[] = { 0.0, 0.0, 0.0, 1.0 };
GLfloat light_diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
@@ -67,7 +67,7 @@ void myinit (void)
glEnable(GL_DEPTH_TEST);
}
-void display (void)
+static void display (void)
{
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -95,7 +95,7 @@ void display (void)
glFlush ();
}
-void myReshape(int w, int h)
+static void myReshape(int w, int h)
{
glViewport (0, 0, w, h);
glMatrixMode (GL_PROJECTION);