X-Git-Url: http://review.tizen.org/git/?p=sdk%2Femulator%2Fqemu.git;a=blobdiff_plain;f=module.c;h=c3a6da7a86712cd141acfce06c08cabde80c2dbc;hp=e77d5697685a7927bee40329038eb97d0139f235;hb=5b17056e3d5c144103dd2c3d71466482093bfa8c;hpb=df8b863e2f7219eb3356ecc12635811241e38aad diff --git a/module.c b/module.c index e77d569..c3a6da7 100644 --- a/module.c +++ b/module.c @@ -9,6 +9,8 @@ * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * + * Contributions after 2012-01-13 are licensed under the terms of the + * GNU GPL, version 2 or (at your option) any later version. */ #include "qemu-common.h" @@ -17,7 +19,6 @@ typedef struct ModuleEntry { - module_init_type type; void (*init)(void); QTAILQ_ENTRY(ModuleEntry) node; } ModuleEntry; @@ -59,7 +60,7 @@ void register_module_init(void (*fn)(void), module_init_type type) ModuleEntry *e; ModuleTypeList *l; - e = qemu_mallocz(sizeof(*e)); + e = g_malloc0(sizeof(*e)); e->init = fn; l = find_type(type);