From 97fcc0e77b55f2d11a4fe34fbe71605d0550e6c8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 18 Jan 2004 17:18:43 +0000 Subject: make second param of driParseConfigFiles() const --- src/mesa/drivers/dri/common/xmlconfig.c | 4 ++-- src/mesa/drivers/dri/common/xmlconfig.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index f45ab06ac4..f5e07de4ed 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.c +++ b/src/mesa/drivers/dri/common/xmlconfig.c @@ -837,7 +837,7 @@ static void optConfEndElem (void *userData, const XML_Char *name) { } /** \brief Initialize an option cache based on info */ -static void initOptionCache (driOptionCache *cache, driOptionCache *info) { +static void initOptionCache (driOptionCache *cache, const driOptionCache *info) { cache->info = info->info; cache->tableSize = info->tableSize; cache->values = MALLOC ((1<tableSize) * sizeof (driOptionValue)); @@ -888,7 +888,7 @@ static void parseOneConfigFile (XML_Parser p) { #undef BUF_SIZE } -void driParseConfigFiles (driOptionCache *cache, driOptionCache *info, +void driParseConfigFiles (driOptionCache *cache, const driOptionCache *info, GLint screenNum, const char *driverName) { char *filenames[2] = {"/etc/drirc", NULL}; char *home; diff --git a/src/mesa/drivers/dri/common/xmlconfig.h b/src/mesa/drivers/dri/common/xmlconfig.h index b636349b1f..c363af764f 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.h +++ b/src/mesa/drivers/dri/common/xmlconfig.h @@ -99,7 +99,7 @@ void driParseOptionInfo (driOptionCache *info, * * To be called in CreateContext. screenNum and driverName select * device sections. */ -void driParseConfigFiles (driOptionCache *cache, driOptionCache *info, +void driParseConfigFiles (driOptionCache *cache, const driOptionCache *info, GLint screenNum, const char *driverName); /** \brief Destroy option info * -- cgit v1.2.3