X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=tag.c;h=70a1553ed5c0b3c1beaef64bcdce27a11d3cc72b;hp=962b484a5d3f51fb1cd936c5294000e4b5a3154e;hb=6651dd7fd9e8e95cfc6c472f1adfeff41735d798;hpb=ca65478c8968434c78aacf4a102ccbbe4a66ad9e diff --git a/tag.c b/tag.c index 962b484..70a1553 100644 --- a/tag.c +++ b/tag.c @@ -1,5 +1,4 @@ -/* - * (C)opyright MMVI Anselm R. Garbe +/* (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. */ #include "dwm.h" @@ -45,7 +44,7 @@ getprev(Client *c) { } void -initrregs() { +initrregs(void) { unsigned int i; regex_t *reg; @@ -53,7 +52,6 @@ initrregs() { return; len = sizeof(rule) / sizeof(rule[0]); rreg = emallocz(len * sizeof(RReg)); - for(i = 0; i < len; i++) { if(rule[i].clpattern) { reg = emallocz(sizeof(regex_t)); @@ -115,7 +113,6 @@ tag(Arg *arg) { if(!sel) return; - for(i = 0; i < ntags; i++) sel->tags[i] = False; sel->tags[arg->i] = True; @@ -129,7 +126,6 @@ toggletag(Arg *arg) { if(!sel) return; - sel->tags[arg->i] = !sel->tags[arg->i]; for(i = 0; i < ntags && !sel->tags[i]; i++); if(i == ntags)