[Openchrome-devel] xf86-video-openchrome: src/via_outputs.c
James Simmons
jsimmons at kemper.freedesktop.org
Sat Jan 12 17:00:56 PST 2013
src/via_outputs.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 4d8e321dd715edcaf1e6df70ef29e52c552039a2
Author: James Simmons <jsimmons at infradead.org>
Date: Sat Jan 12 20:00:50 2013 -0500
Allow via_output.c to build without C99 mode
diff --git a/src/via_outputs.c b/src/via_outputs.c
index c781a03..7e0c5e4 100644
--- a/src/via_outputs.c
+++ b/src/via_outputs.c
@@ -350,17 +350,15 @@ via_tv_detect(xf86OutputPtr output)
static DisplayModePtr
via_tv_get_modes(xf86OutputPtr output)
{
+ DisplayModePtr modes = NULL, mode = NULL;
ScrnInfoPtr pScrn = output->scrn;
VIAPtr pVia = VIAPTR(pScrn);
+ int i;
- DisplayModePtr modes = NULL;
- DisplayModePtr mode = NULL;
-
- for (int i = 0; i < pVia->pBIOSInfo->TVNumModes; i++) {
+ for (i = 0; i < pVia->pBIOSInfo->TVNumModes; i++) {
mode = xf86DuplicateMode(&pVia->pBIOSInfo->TVModes[i]);
modes = xf86ModesAdd(modes, mode);
}
-
return modes;
}
More information about the Openchrome-devel
mailing list