summaryrefslogtreecommitdiffstats
path: root/progs/redbook
diff options
context:
space:
mode:
Diffstat (limited to 'progs/redbook')
-rw-r--r--progs/redbook/pickdepth.c4
-rw-r--r--progs/redbook/picksquare.c4
-rw-r--r--progs/redbook/select.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/progs/redbook/pickdepth.c b/progs/redbook/pickdepth.c
index 4b95d245ceb..ad5bdc81994 100644
--- a/progs/redbook/pickdepth.c
+++ b/progs/redbook/pickdepth.c
@@ -103,8 +103,8 @@ drawRects(GLenum mode)
void
processHits(GLint hits, GLuint buffer[])
{
- unsigned int i, j;
- GLuint names, *ptr;
+ GLint i;
+ GLuint j, names, *ptr;
printf("hits = %d\n", hits);
ptr = (GLuint *) buffer;
diff --git a/progs/redbook/picksquare.c b/progs/redbook/picksquare.c
index b68117c2787..636edc97b4b 100644
--- a/progs/redbook/picksquare.c
+++ b/progs/redbook/picksquare.c
@@ -87,8 +87,8 @@ void drawSquares(GLenum mode)
*/
void processHits (GLint hits, GLuint buffer[])
{
- unsigned int i, j;
- GLuint ii = 0, jj = 0, names, *ptr;
+ GLint i;
+ GLuint j, ii = 0, jj = 0, names, *ptr;
printf ("hits = %d\n", hits);
ptr = (GLuint *) buffer;
diff --git a/progs/redbook/select.c b/progs/redbook/select.c
index 4f413e73ce9..928373b8796 100644
--- a/progs/redbook/select.c
+++ b/progs/redbook/select.c
@@ -124,8 +124,8 @@ void drawScene (void)
*/
void processHits (GLint hits, GLuint buffer[])
{
- unsigned int i, j;
- GLuint names, *ptr;
+ GLint i;
+ GLuint j, names, *ptr;
printf ("hits = %d\n", hits);
ptr = (GLuint *) buffer;