From 79d47687953367c911b8e6ce692373417ae9f8ed Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 1 Jan 2012 16:07:55 +0100 Subject: Constify argument of wsfb_open() Signed-off-by: Matthieu Herrb --- src/wsfb_driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wsfb_driver.c b/src/wsfb_driver.c index 8cd10a1..96f2a2d 100644 --- a/src/wsfb_driver.c +++ b/src/wsfb_driver.c @@ -136,7 +136,7 @@ static Bool WsfbDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op, pointer ptr); /* Helper functions */ -static int wsfb_open(char *); +static int wsfb_open(const char *); static pointer wsfb_mmap(size_t, off_t, int); enum { WSFB_ROTATE_NONE = 0, @@ -291,7 +291,7 @@ WsfbIdentify(int flags) /* Open the framebuffer device. */ static int -wsfb_open(char *dev) +wsfb_open(const char *dev) { int fd = -1; @@ -345,7 +345,7 @@ WsfbProbe(DriverPtr drv, int flags) int i, fd, entity; GDevPtr *devSections; int numDevSections; - char *dev; + const char *dev; Bool foundScreen = FALSE; TRACE("probe start"); @@ -396,8 +396,8 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags) { WsfbPtr fPtr; int default_depth, wstype; - char *dev, *s; - char *mod = NULL; + const char *dev; + char *mod = NULL, *s; const char *reqSym = NULL; Gamma zeros = {0.0, 0.0, 0.0}; DisplayModePtr mode; -- cgit v1.2.3