summaryrefslogtreecommitdiffstats
path: root/progs/redbook
diff options
context:
space:
mode:
Diffstat (limited to 'progs/redbook')
-rw-r--r--progs/redbook/picksquare.c2
-rw-r--r--progs/redbook/wrap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/progs/redbook/picksquare.c b/progs/redbook/picksquare.c
index 0a12aa0facd..b68117c2787 100644
--- a/progs/redbook/picksquare.c
+++ b/progs/redbook/picksquare.c
@@ -88,7 +88,7 @@ void drawSquares(GLenum mode)
void processHits (GLint hits, GLuint buffer[])
{
unsigned int i, j;
- GLuint ii, jj, names, *ptr;
+ GLuint ii = 0, jj = 0, names, *ptr;
printf ("hits = %d\n", hits);
ptr = (GLuint *) buffer;
diff --git a/progs/redbook/wrap.c b/progs/redbook/wrap.c
index c67e04a7f37..f9a1f162ab6 100644
--- a/progs/redbook/wrap.c
+++ b/progs/redbook/wrap.c
@@ -65,7 +65,7 @@ void makeCheckImage(void)
for (i = 0; i < checkImageHeight; i++) {
for (j = 0; j < checkImageWidth; j++) {
- c = ((((i&0x8)==0)^((j&0x8))==0))*255;
+ c = (((i&0x8)==0)^((j&0x8)==0))*255;
checkImage[i][j][0] = (GLubyte) c;
checkImage[i][j][1] = (GLubyte) c;
checkImage[i][j][2] = (GLubyte) c;