aboutsummaryrefslogtreecommitdiffstats
path: root/progs/redbook/double.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-21 15:20:01 -0800
committerVinson Lee <[email protected]>2009-12-21 15:20:01 -0800
commit07b54fe35b93ccfd9eebd2cebe637c20044200f2 (patch)
tree9489591db4a4e8b0d1559dc06fd25bc84e97fd28 /progs/redbook/double.c
parent753f0a1dea6c304eb3cc5a3db5f24a5801e37a55 (diff)
progs/redbook: Silence compiler warnings.
Diffstat (limited to 'progs/redbook/double.c')
-rw-r--r--progs/redbook/double.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/progs/redbook/double.c b/progs/redbook/double.c
index 3153c70cc1d..c4ead224dc8 100644
--- a/progs/redbook/double.c
+++ b/progs/redbook/double.c
@@ -47,7 +47,7 @@
static GLfloat spin = 0.0;
static GLdouble t0 = 0.;
-void display(void)
+static void display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glPushMatrix();
@@ -59,12 +59,12 @@ void display(void)
glutSwapBuffers();
}
-GLdouble gettime(void)
+static GLdouble gettime(void)
{
return (GLdouble)(glutGet(GLUT_ELAPSED_TIME)) / 1000.;
}
-void spinDisplay(void)
+static void spinDisplay(void)
{
GLdouble t, dt;
t = gettime();
@@ -76,13 +76,13 @@ void spinDisplay(void)
glutPostRedisplay();
}
-void init(void)
+static void init(void)
{
glClearColor (0.0, 0.0, 0.0, 0.0);
glShadeModel (GL_FLAT);
}
-void reshape(int w, int h)
+static void reshape(int w, int h)
{
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
glMatrixMode(GL_PROJECTION);
@@ -93,7 +93,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: