From 7a523acf985771b2bd45f5d2823c217cd9075b1e Mon Sep 17 00:00:00 2001 From: Frank Huang Date: Mon, 9 Aug 2010 10:43:27 +0800 Subject: Correct two outstanding compiler warnings *Correct the type from "Q_WORD" to "QQ_WORD" in panel.c *Correct the tyep from "char" to "const char" in z4l.c Signed-off-by: Frank Huang --- src/panel/gx2_9211.c | 2 +- src/z4l.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/panel/gx2_9211.c b/src/panel/gx2_9211.c index a60264d..7d46b9c 100644 --- a/src/panel/gx2_9211.c +++ b/src/panel/gx2_9211.c @@ -193,7 +193,7 @@ set_Redcloud_92xx_mode_params(int mode) CS92xx_MODE *pMode = &FPModeParams[mode]; unsigned long temp_data = 0; unsigned long base_data; - Q_WORD msrValue; + QQ_WORD msrValue; /* on a Redcloud, we need to set up the DF pad select MSR */ if (gfx_msr_read(RC_ID_DF, GX2_VP_MSR_PAD_SELECT, &msrValue) == FOUND) { diff --git a/src/z4l.c b/src/z4l.c index 3935962..1bad0d8 100644 --- a/src/z4l.c +++ b/src/z4l.c @@ -1184,7 +1184,7 @@ Z4lSetPortAttribute(ScrnInfoPtr pScrni, Atom attribute, INT32 value, XF86AttributePtr attr; struct v4l2_control ctrl; int i, nattrs, attrId, val; - char *name = NameForAtom(attribute); + const char *name = NameForAtom(attribute); int old_fd = pPriv->fd; DBLOG(1, "Z4lSetPortAttribute(%#lx,%d) '%s'\n", (unsigned long)attribute, @@ -1245,7 +1245,7 @@ Z4lGetPortAttribute(ScrnInfoPtr pScrni, Atom attribute, INT32 * value, XF86AttributePtr attr; struct v4l2_control ctrl; int i, nattrs, attrId, val; - char *name = NameForAtom(attribute); + const char *name = NameForAtom(attribute); int old_fd = pPriv->fd; DBLOG(1, "Z4lGetPortAttribute(%#lx) '%s'\n", -- cgit v1.2.3