From 4cf5a98fa42b6d99a178eda07a9e42f91e02c97d Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 28 May 2007 18:34:27 +0000 Subject: convert globals from G_foo to Foo, as per TODO. "looks good" pedro@, ok matthieu@ --- conf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 9c53fb9..e3ca7b6 100644 --- a/conf.c +++ b/conf.c @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen * All rights reserved. * - * $Id: conf.c,v 1.3 2007/05/27 09:23:12 jasper Exp $ + * $Id: conf.c,v 1.4 2007/05/28 18:34:27 jasper Exp $ */ #include "headers.h" @@ -78,9 +78,9 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags) /* "term" and "lock" have special meanings. */ if (strcmp(label, "term") == 0) { - strlcpy(G_conf.termpath, image, sizeof(G_conf.termpath)); + strlcpy(Conf.termpath, image, sizeof(Conf.termpath)); } else if (strcmp(label, "lock") == 0) { - strlcpy(G_conf.lockpath, image, sizeof(G_conf.lockpath)); + strlcpy(Conf.lockpath, image, sizeof(Conf.lockpath)); } else { struct cmd *cmd; XMALLOC(cmd, struct cmd); @@ -262,8 +262,8 @@ conf_setup(struct conf *c) c->flags = 0; /* Default term/lock */ - strlcpy(G_conf.termpath, "xterm", sizeof(G_conf.termpath)); - strlcpy(G_conf.lockpath, "xlock", sizeof(G_conf.lockpath)); + strlcpy(Conf.termpath, "xterm", sizeof(Conf.termpath)); + strlcpy(Conf.lockpath, "xlock", sizeof(Conf.lockpath)); } int @@ -471,7 +471,7 @@ conf_parsesettings(struct conf *c, char *filename) if (ent->d_name[0] == '.') continue; if (strncmp(ent->d_name, "sticky", 7)==0) - G_conf.flags |= CONF_STICKY_GROUPS; + Conf.flags |= CONF_STICKY_GROUPS; } closedir(dir); } -- cgit v1.2.3-2-gb3c3