mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-21 15:40:37 +01:00
DoShowOptions: preserve constness of options list as we walk it
Since all we do with the option list is walk down the list printing the names, there's no need to cast away its constness. Clears gcc warning: xf86Configure.c: In function 'DoShowOptions': xf86Configure.c:781:4: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
71efd86828
commit
5bc590bde2
1 changed files with 3 additions and 2 deletions
|
|
@ -778,7 +778,8 @@ void DoShowOptions (void) {
|
|||
free(vlist);
|
||||
for (i = 0; i < xf86NumDrivers; i++) {
|
||||
if (xf86DriverList[i]->AvailableOptions) {
|
||||
OptionInfoPtr pOption = (OptionInfoPtr)(*xf86DriverList[i]->AvailableOptions)(0,0);
|
||||
const OptionInfoRec *pOption =
|
||||
(*xf86DriverList[i]->AvailableOptions)(0,0);
|
||||
if (! pOption) {
|
||||
ErrorF ("(EE) Couldn't read option table for %s driver\n",
|
||||
xf86DriverList[i]->driverName
|
||||
|
|
@ -790,7 +791,7 @@ void DoShowOptions (void) {
|
|||
initData = LoaderSymbol (pSymbol);
|
||||
if (initData) {
|
||||
XF86ModuleVersionInfo *vers = initData->vers;
|
||||
OptionInfoPtr p;
|
||||
const OptionInfoRec *p;
|
||||
ErrorF ("Driver[%d]:%s[%s] {\n",
|
||||
i,xf86DriverList[i]->driverName,vers->vendor
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue