diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-01-01 16:07:39 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-01-01 16:07:39 +0000 |
commit | e78d6cc4d2497ed25df9c236d3f24275a025bc36 (patch) | |
tree | 0a2f6b783a40e45663fd7939175c76676f6a4ea0 /driver/xf86-video-wsfb | |
parent | 5b88d86edfa1ee23cf922e1aa0d985df2e548dd1 (diff) |
Constify wsfb_open() argument.
Diffstat (limited to 'driver/xf86-video-wsfb')
-rw-r--r-- | driver/xf86-video-wsfb/src/wsfb_driver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/driver/xf86-video-wsfb/src/wsfb_driver.c b/driver/xf86-video-wsfb/src/wsfb_driver.c index f3e0dff30..bfb1c0d1e 100644 --- a/driver/xf86-video-wsfb/src/wsfb_driver.c +++ b/driver/xf86-video-wsfb/src/wsfb_driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsfb_driver.c,v 1.26 2012/01/01 16:04:35 matthieu Exp $ */ +/* $OpenBSD: wsfb_driver.c,v 1.27 2012/01/01 16:07:38 matthieu Exp $ */ /* * Copyright © 2001-2012 Matthieu Herrb * All rights reserved. @@ -137,7 +137,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, @@ -292,7 +292,7 @@ WsfbIdentify(int flags) /* Open the framebuffer device. */ static int -wsfb_open(char *dev) +wsfb_open(const char *dev) { int fd = -1; @@ -346,7 +346,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"); @@ -397,8 +397,8 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags) { WsfbPtr fPtr; int defaultDepth, depths, flags24, 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; |