Instead of having a function that just calls TAILQ_INIT on a global, use
TAILQ_HEAD_INITIALIZER() and drop the function. ok okan@
This commit is contained in:
6
calmwm.c
6
calmwm.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user