Module Name: xsrc Committed By: joerg Date: Tue Sep 27 19:11:51 UTC 2016
Modified Files: xsrc/external/mit/xf86-video-suncg14/dist/src: cg14_driver.c xsrc/external/mit/xf86-video-suntcx/dist/src: tcx_driver.c Log Message: Don't directly use assignments in if (), but add the commonly accepted explicit pair of parenthesis. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 \ xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c cvs rdiff -u -r1.12 -r1.13 \ xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.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-suncg14/dist/src/cg14_driver.c diff -u xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c:1.14 xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c:1.15 --- xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c:1.14 Sun Sep 18 02:05:38 2016 +++ xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c Tue Sep 27 19:11:51 2016 @@ -351,7 +351,7 @@ CG14PreInit(ScrnInfoPtr pScrn, int flags pCg14->memsize = 0x00800000; len = 24; prom = sparcPromInit(); - if (ptr = sparcPromGetProperty(&psdp->node, "reg", &len)) { + if ((ptr = sparcPromGetProperty(&psdp->node, "reg", &len))) { if (len >= 24) { memcpy(reg, ptr, 24); size = reg[5]; Index: xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c diff -u xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c:1.12 xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c:1.13 --- xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c:1.12 Fri Sep 23 20:51:57 2016 +++ xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c Tue Sep 27 19:11:51 2016 @@ -345,7 +345,7 @@ TCXPreInit(ScrnInfoPtr pScrn, int flags) prom = sparcPromInit(); hwCursor = sparcPromGetBool(&psdp->node, "hw-cursor"); lowDepth = sparcPromGetBool(&psdp->node, "tcx-8-bit"); - if (pTcx->HasStipROP = sparcPromGetBool(&psdp->node, "stip-rop")) { + if ((pTcx->HasStipROP = sparcPromGetBool(&psdp->node, "stip-rop"))) { xf86Msg(X_PROBED, "stipple space supports ROPs\n"); } pTcx->Is8bit = (lowDepth != 0);