Module Name: xsrc
Committed By: apb
Date: Fri Nov 2 07:55:39 UTC 2012
Modified Files:
xsrc/external/mit/xf86-video-xgi/dist/src: vb_setmode.c
Log Message:
In XGI_GetTVPtrIndex2(), return the correct value through *tempch
by using (*tempch)++ instead of *tempch++.
Found using clang -Wunused-value.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/xf86-video-xgi/dist/src/vb_setmode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xf86-video-xgi/dist/src/vb_setmode.c
diff -u xsrc/external/mit/xf86-video-xgi/dist/src/vb_setmode.c:1.2 xsrc/external/mit/xf86-video-xgi/dist/src/vb_setmode.c:1.3
--- xsrc/external/mit/xf86-video-xgi/dist/src/vb_setmode.c:1.2 Thu Jul 19 19:18:20 2012
+++ xsrc/external/mit/xf86-video-xgi/dist/src/vb_setmode.c Fri Nov 2 07:55:38 2012
@@ -9502,7 +9502,7 @@ XGI_GetTVPtrIndex2(USHORT * tempbx, UCHA
if (pVBInfo->
VBType & (VB_XGI301B | VB_XGI302B | VB_XGI301LV | VB_XGI302LV |
VB_XGI301C))
- *tempch++;
+ (*tempch)++;
}
@@ -10242,4 +10242,4 @@ void XGIInitMiscVBInfo(PXGI_HW_DEVICE_IN
}
PDEBUG(ErrorF("XGIInitMiscVBInfo()...End\n"));
-}
\ No newline at end of file
+}