diff options
author | okan | 2012-12-17 14:32:39 +0000 |
---|---|---|
committer | okan | 2012-12-17 14:32:39 +0000 |
commit | c41d09cb1ce845c96079c6bc1e204e62caf32b95 (patch) | |
tree | b245825ac245104c8c5bf701e726234d9df75d46 /group.c | |
parent | 43033f15ed112e90c2a62d9facdbfbf1ad5b61ee (diff) | |
download | cwm-c41d09cb1ce845c96079c6bc1e204e62caf32b95.tar.gz |
create and use menuq_clear() helper; from Tiago Cunha
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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. * - * $OpenBSD: group.c,v 1.64 2012/11/29 04:25:49 okan Exp $ + * $OpenBSD: group.c,v 1.65 2012/12/17 14:32:39 okan Exp $ */ #include <sys/param.h> @@ -385,10 +385,7 @@ group_menu(XButtonEvent *e) (gc->hidden) ? group_show(sc, gc) : group_hide(sc, gc); cleanup: - while ((mi = TAILQ_FIRST(&menuq)) != NULL) { - TAILQ_REMOVE(&menuq, mi, entry); - free(mi); - } + menuq_clear(&menuq); } void |