ia64/xen-unstable

changeset 7569:ecae9e6c7331

Added cast to silence warning on 64-bit.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Sun Oct 30 16:25:52 2005 +0100 (2005-10-30)
parents 8ffba597c385
children b50eb7619dd4
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Sun Oct 30 15:54:15 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Sun Oct 30 16:25:52 2005 +0100
     1.3 @@ -552,7 +552,7 @@ static void dev_changed(const char *node
     1.4  
     1.5  	/* backend/<type>/... or device/<type>/... */
     1.6  	p = strchr(node, '/') + 1;
     1.7 -	snprintf(type, BUS_ID_SIZE, "%.*s", strcspn(p, "/"), p);
     1.8 +	snprintf(type, BUS_ID_SIZE, "%.*s", (int)strcspn(p, "/"), p);
     1.9  	type[BUS_ID_SIZE-1] = '\0';
    1.10  
    1.11  	rootlen = strsep_len(node, '/', bus->levels);