Used an initializer instead of memset for previous patch

This commit is contained in:
Kris Maglione 2006-06-08 10:48:19 -04:00
parent fc014f101c
commit b0b46d2bf0
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,8 @@
#include "wm.h"
IXPServer srv = {0};
static int other_wm_running;
static int (*x_error_handler) (Display *, XErrorEvent *);
static char version[] = "wmiiwm - " VERSION ", (C)opyright MMIV-MMVI Anselm R. Garbe\n";
@ -274,7 +276,6 @@ main(int argc, char *argv[])
}
/* IXP server */
memset(&srv, 0, sizeof(srv);
ixp_server_open_conn(&srv, i, new_ixp_conn, ixp_server_close_conn);
root_qid.qid.dir_type = FsDroot;
root_qid.type = IXP_QTDIR;