added (char *) casts
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 Aug 2002 17:12:38 +0000 (17:12 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 Aug 2002 17:12:38 +0000 (17:12 +0000)
progs/demos/fire.c
progs/demos/ipers.c
progs/demos/terrain.c

index a648a9d0db9f089f5ef5975b74ad0b251ed3a061..5c467acfaca525eb9ddfb8b9d8310ecba58c5ac4 100644 (file)
@@ -660,7 +660,7 @@ inittextures(void)
 
       if ((gluerr = gluBuild2DMipmaps(GL_TEXTURE_2D, 4, 128, 128, GL_RGBA,
                                      GL_UNSIGNED_BYTE, (GLvoid *) (tex)))) {
-        fprintf(stderr, "GLULib%s\n", gluErrorString(gluerr));
+        fprintf(stderr, "GLULib%s\n", (char *) gluErrorString(gluerr));
         exit(-1);
       }
    }
index 87d70ef8bc6d88a00215a06ff9c2fc3f1c2d7f7e..8168034ffd9b30b4249e064f3d57c2c96d102939 100644 (file)
@@ -186,7 +186,7 @@ inittextures(void)
        (gluerr =
        gluBuild2DMipmaps(GL_TEXTURE_2D, 3, TEX_SKY_WIDTH, TEX_SKY_HEIGHT,
                          GL_RGB, GL_UNSIGNED_BYTE, (GLvoid *) (tsky)))) {
-      fprintf(stderr, "GLULib%s\n", gluErrorString(gluerr));
+      fprintf(stderr, "GLULib%s\n", (char *) gluErrorString(gluerr));
       exit(-1);
    }
 
index da5b90d300c41cddc937250855524adbc5f9602a..9063c939d5e4c3c47fd629797c78179438c2fff1 100644 (file)
@@ -572,7 +572,7 @@ loadpic(void)
    if ((gluerr = gluBuild2DMipmaps(GL_TEXTURE_2D, 1, 256, 256, GL_LUMINANCE,
                                   GL_UNSIGNED_BYTE,
                                   (GLvoid *) (&terrainpic[0])))) {
-      fprintf(stderr, "GLULib%s\n", gluErrorString(gluerr));
+      fprintf(stderr, "GLULib%s\n", (char *) gluErrorString(gluerr));
       exit(-1);
    }