aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga2009-08-24 21:22:48 +0000
committeroga2009-08-24 21:22:48 +0000
commitc460e9758e8fcb33b958beca85d70b67857758d4 (patch)
treec7b727050f8e11bfab7a85ea73440e8f7109914a /calmwm.c
parent4ab2deedeb800d2e9ab96b2153261c520bec2de5 (diff)
downloadcwm-c460e9758e8fcb33b958beca85d70b67857758d4.tar.gz
Instead of having a function that just calls TAILQ_INIT on a global, use
TAILQ_HEAD_INITIALIZER() and drop the function. ok okan@
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/calmwm.c b/calmwm.c
index a656823..3a3a813 100644
--- a/calmwm.c
+++ b/calmwm.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.
*
- * $Id: calmwm.c,v 1.42 2009/06/26 12:21:58 okan Exp $
+ * $Id: calmwm.c,v 1.43 2009/08/24 21:22:48 oga Exp $
*/
#include "headers.h"
@@ -29,10 +29,10 @@ Cursor Cursor_select;
Cursor Cursor_default;
Cursor Cursor_question;
-struct screen_ctx_q Screenq;
+struct screen_ctx_q Screenq = TAILQ_HEAD_INITIALIZER(Screenq);
struct screen_ctx *Curscreen;
-struct client_ctx_q Clientq;
+struct client_ctx_q Clientq = TAILQ_HEAD_INITIALIZER(Clientq);
int HasXinerama, HasRandr, Randr_ev;
int Starting;
@@ -73,9 +73,7 @@ main(int argc, char **argv)
Starting = 1;
dpy_init(display_name);
- screen_init();
group_init();
- client_init();
bzero(&Conf, sizeof(Conf));
conf_setup(&Conf, conf_file);