Demos (master): demos/pixeltest: remove c99-ism
Keith Whitwell
keithw at kemper.freedesktop.org
Wed Aug 25 14:24:26 UTC 2010
Module: Demos
Branch: master
Commit: 8cec3f7b6884c6e23c496642ba032512b25dca9a
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=8cec3f7b6884c6e23c496642ba032512b25dca9a
Author: Keith Whitwell <keithw at vmware.com>
Date: Wed Aug 25 15:22:38 2010 +0100
demos/pixeltest: remove c99-ism
---
src/demos/pixeltest.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/demos/pixeltest.c b/src/demos/pixeltest.c
index ad44d6f..744b94e 100644
--- a/src/demos/pixeltest.c
+++ b/src/demos/pixeltest.c
@@ -74,7 +74,7 @@ drawzoomline(int x0, int y0, int x1, int y1, GLushort color)
float error;
float deltaerr;
int ystep;
- int y;
+ int x, y;
if (steep) {
int temp0 = x0;
@@ -104,7 +104,7 @@ drawzoomline(int x0, int y0, int x1, int y1, GLushort color)
else
ystep = -1;
- for (int x = x0; x < x1; x++) {
+ for (x = x0; x < x1; x++) {
if (y>0 && x>0) {
if (!steep) {
myImage[y][x] = color;
@@ -418,7 +418,7 @@ processMouseMotion(int x, int y)
}
static void
-Init()
+Init(void)
{
printf("GL_VERSION = %s\n", (char *) glGetString(GL_VERSION));
printf("GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER));
More information about the mesa-commit
mailing list