From 84dc0e28f6cc699192cb969b22ee2a23cd4f88f5 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 25 Sep 2010 19:58:08 +0000 Subject: more clear variable name so than name/class shouldn't be confused again. ok oga@ --- group.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/group.c b/group.c index 4261d25..74ae765 100644 --- a/group.c +++ b/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: group.c,v 1.46 2010/07/30 12:28:19 okan Exp $ + * $Id: group.c,v 1.47 2010/09/25 19:58:08 okan Exp $ */ #include @@ -179,19 +179,19 @@ group_init(struct screen_ctx *sc) } void -group_make_autogroup(struct conf *conf, char *class, int no) +group_make_autogroup(struct conf *conf, char *val, int no) { struct autogroupwin *aw; char *p; aw = xcalloc(1, sizeof(*aw)); - if ((p = strchr(class, ',')) == NULL) { + if ((p = strchr(val, ',')) == NULL) { aw->name = NULL; - aw->class = xstrdup(class); + aw->class = xstrdup(val); } else { *(p++) = '\0'; - aw->name = xstrdup(class); + aw->name = xstrdup(val); aw->class = xstrdup(p); } aw->num = no; -- cgit v1.2.3-2-gb3c3