Commit 66859304 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Remove some indirections

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 89de8dd7
......@@ -7,7 +7,7 @@
static girara_log_level_t log_level = GIRARA_DEBUG;
static const char* NAMES[] = {
static const char NAMES[][8] = {
[GIRARA_DEBUG] = "debug",
[GIRARA_INFO] = "info",
[GIRARA_WARNING] = "warning",
......
......@@ -43,7 +43,7 @@ ensure_gettext_initialized(void)
static void
init_template_engine(GiraraTemplate* csstemplate)
{
static const char* variable_names[] = {
static const char variable_names[][24] = {
"session",
"default-fg",
"default-bg",
......
......@@ -124,12 +124,12 @@ girara_get_home_directory(const char* user)
char*
girara_get_xdg_path(girara_xdg_path_t path)
{
static const char* VARS[] = {
static const char VARS[][16] = {
[XDG_CONFIG_DIRS] = "XDG_CONFIG_DIRS",
[XDG_DATA_DIRS] = "XDG_DATA_DIRS"
};
static const char* DEFAULTS[] = {
static const char DEFAULTS[][29] = {
[XDG_CONFIG_DIRS] = "/etc/xdg",
[XDG_DATA_DIRS] = "/usr/local/share/:/usr/share"
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment