ia64/xen-unstable

changeset 8642:6afcef051257

use talloc_zero instead of talloc + memset

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Tue Jan 24 12:03:06 2006 +0000 (2006-01-24)
parents c70109e64c9e
children 068857a7133d
files tools/xenstore/xenstored_core.c
line diff
     1.1 --- a/tools/xenstore/xenstored_core.c	Tue Jan 24 11:50:38 2006 +0000
     1.2 +++ b/tools/xenstore/xenstored_core.c	Tue Jan 24 12:03:06 2006 +0000
     1.3 @@ -1301,11 +1301,10 @@ struct connection *new_connection(connwr
     1.4  {
     1.5  	struct connection *new;
     1.6  
     1.7 -	new = talloc(talloc_autofree_context(), struct connection);
     1.8 +	new = talloc_zero(talloc_autofree_context(), struct connection);
     1.9  	if (!new)
    1.10  		return NULL;
    1.11  
    1.12 -	memset(new, 0, sizeof(*new));
    1.13  	new->fd = -1;
    1.14  	new->write = write;
    1.15  	new->read = read;