diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2012-01-01 16:07:55 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2012-01-01 16:10:57 +0100 |
commit | 79d47687953367c911b8e6ce692373417ae9f8ed (patch) | |
tree | d1fa12a16e10205f15ebc2fb936fff32d6ea404f | |
parent | 78bb956de171c089e934457e9494858c804b1b86 (diff) |
Constify argument of wsfb_open()
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
-rw-r--r-- | src/wsfb_driver.c | 10 |
1 files 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; |