summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-04-06 02:22:59 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-04-06 02:22:59 +0000
commit3cd7738c9b07bb730c9fa7b88e41751c116fcb80 (patch)
treec489d659e87644796fbaedb2fc9975ed8277efee
parent32afff3fe3cc9e6b2b1f9662acc37e5366a02276 (diff)
silenced warnings
-rw-r--r--progs/demos/gears.c4
-rw-r--r--progs/demos/geartrain.c22
2 files changed, 13 insertions, 13 deletions
diff --git a/progs/demos/gears.c b/progs/demos/gears.c
index df9bd56a37..ac90885053 100644
--- a/progs/demos/gears.c
+++ b/progs/demos/gears.c
@@ -1,4 +1,4 @@
-/* $Id: gears.c,v 1.5 2000/04/05 21:36:03 brianp Exp $ */
+/* $Id: gears.c,v 1.6 2000/04/06 02:22:59 brianp Exp $ */
/*
* 3-D gear wheels. This program is in the public domain.
@@ -330,7 +330,7 @@ init(int argc, char *argv[])
}
}
-void
+static void
visible(int vis)
{
if (vis == GLUT_VISIBLE)
diff --git a/progs/demos/geartrain.c b/progs/demos/geartrain.c
index d973583d70..e36564715c 100644
--- a/progs/demos/geartrain.c
+++ b/progs/demos/geartrain.c
@@ -1,4 +1,4 @@
-/* $Id: geartrain.c,v 1.5 2000/04/05 21:36:03 brianp Exp $ */
+/* $Id: geartrain.c,v 1.6 2000/04/06 02:22:59 brianp Exp $ */
/*
* GearTrain Simulator * Version: 1.00
@@ -100,7 +100,7 @@ int number_of_belts;
char Buf1[256], Buf2[256], Buf3[256], Buf4[256], Buf5[256];
-void
+static void
strset (char buf[], char ch)
{
int i;
@@ -109,7 +109,7 @@ strset (char buf[], char ch)
}
-void
+static void
Clear_Buffers ()
{
strset (Buf1, 0);
@@ -120,7 +120,7 @@ Clear_Buffers ()
}
-void
+static void
LoadTriplet (TDA A)
{
Clear_Buffers ();
@@ -131,7 +131,7 @@ LoadTriplet (TDA A)
}
-void
+static void
LoadReal (float *a)
{
Clear_Buffers ();
@@ -140,7 +140,7 @@ LoadReal (float *a)
}
-void
+static void
LoadInteger (int *a)
{
Clear_Buffers ();
@@ -149,7 +149,7 @@ LoadInteger (int *a)
}
-void
+static void
LoadText (char *a)
{
Clear_Buffers ();
@@ -158,7 +158,7 @@ LoadText (char *a)
}
-void
+static void
getdata (char filename[])
{
int gear_count = 0, axle_count = 0, belt_count = 0, i;
@@ -545,7 +545,7 @@ belt (struct GEAR g1, struct GEAR g2)
}
-int
+static int
axle_find (char axle_name[])
{
int i;
@@ -559,7 +559,7 @@ axle_find (char axle_name[])
}
-int
+static int
gear_find (char gear_name[])
{
int i;
@@ -573,7 +573,7 @@ gear_find (char gear_name[])
}
-void
+static void
process ()
{
GLfloat x, y, z, D, dist;