summaryrefslogtreecommitdiff
path: root/progs/redbook/movelight.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/movelight.c
parent753f0a1dea6c304eb3cc5a3db5f24a5801e37a55 (diff)
progs/redbook: Silence compiler warnings.
Diffstat (limited to 'progs/redbook/movelight.c')
-rw-r--r--progs/redbook/movelight.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/progs/redbook/movelight.c b/progs/redbook/movelight.c
index a108cad439..93758a222a 100644
--- a/progs/redbook/movelight.c
+++ b/progs/redbook/movelight.c
@@ -58,7 +58,7 @@ static int spin = 0;
/* Initialize material property, light source, lighting model,
* and depth buffer.
*/
-void init(void)
+static void init(void)
{
glClearColor (0.0, 0.0, 0.0, 0.0);
glShadeModel (GL_SMOOTH);
@@ -72,7 +72,7 @@ void init(void)
* light at a new position in world coordinates. The cube
* represents the position of the light.
*/
-void display(void)
+static void display(void)
{
GLfloat position[] = { 0.0, 0.0, 1.5, 1.0 };
@@ -96,7 +96,7 @@ void display(void)
glFlush ();
}
-void reshape (int w, int h)
+static void reshape (int w, int h)
{
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
glMatrixMode (GL_PROJECTION);
@@ -107,7 +107,7 @@ void reshape (int w, int h)
}
/* ARGSUSED2 */
-void mouse(int button, int state, int x, int y)
+static void mouse(int button, int state, int x, int y)
{
switch (button) {
case GLUT_LEFT_BUTTON:
@@ -122,7 +122,7 @@ void mouse(int button, int state, int x, int y)
}
/* ARGSUSED1 */
-void keyboard(unsigned char key, int x, int y)
+static void keyboard(unsigned char key, int x, int y)
{
switch (key) {
case 27: