aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2014-01-30 15:43:53 +0000
committerokan2014-01-30 15:43:53 +0000
commit898be2f9c2c9502ebd3b95e65042473b0ddca25e (patch)
tree4777251c20a003222cda9b180fe89d8285156582
parent0a9f61cb393cf96147389b138b883df1ead53d6b (diff)
downloadcwm-898be2f9c2c9502ebd3b95e65042473b0ddca25e.tar.gz
use the same autogroupwin variable as everywhere else
-rw-r--r--conf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/conf.c b/conf.c
index b35b7c5..ad991cc 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.168 2014/01/30 14:40:21 okan Exp $
+ * $OpenBSD: conf.c,v 1.169 2014/01/30 15:43:53 okan Exp $
*/
#include <sys/param.h>
@@ -287,7 +287,7 @@ conf_init(struct conf *c)
void
conf_clear(struct conf *c)
{
- struct autogroupwin *ag;
+ struct autogroupwin *aw;
struct binding *kb, *mb;
struct winmatch *wm;
struct cmd *cmd;
@@ -303,11 +303,11 @@ conf_clear(struct conf *c)
free(kb);
}
- while ((ag = TAILQ_FIRST(&c->autogroupq)) != NULL) {
- TAILQ_REMOVE(&c->autogroupq, ag, entry);
- free(ag->class);
- free(ag->name);
- free(ag);
+ while ((aw = TAILQ_FIRST(&c->autogroupq)) != NULL) {
+ TAILQ_REMOVE(&c->autogroupq, aw, entry);
+ free(aw->class);
+ free(aw->name);
+ free(aw);
}
while ((wm = TAILQ_FIRST(&c->ignoreq)) != NULL) {