util/xmlconfig: inline datadir
Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21808>
This commit is contained in:

committed by
Marge Bot

parent
44b0764930
commit
042d256c1e
@@ -1173,7 +1173,6 @@ initOptionCache(driOptionCache *cache, const driOptionCache *info)
|
||||
#define DATADIR "/usr/share"
|
||||
#endif
|
||||
|
||||
static const char *datadir = DATADIR "/drirc.d";
|
||||
static const char *execname;
|
||||
|
||||
void
|
||||
@@ -1216,7 +1215,7 @@ driParseConfigFiles(driOptionCache *cache, const driOptionCache *info,
|
||||
if ((configdir = getenv("DRIRC_CONFIGDIR")))
|
||||
parseConfigDir(&userData, configdir);
|
||||
else {
|
||||
parseConfigDir(&userData, datadir);
|
||||
parseConfigDir(&userData, DATADIR "/drirc.d");
|
||||
parseOneConfigFile(&userData, SYSCONFDIR "/drirc");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user