Constify wsfb_open() argument.
This commit is contained in:
parent
c43c7e4fb2
commit
dbe9a416bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user