ia64/xen-unstable

changeset 5375:be46d7ecf186

bitkeeper revision 1.1691.1.9 (42a70b03wo-ZAstvnpad9RB8VIHDAA)

Fix gcc4 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Jun 08 15:13:07 2005 +0000 (2005-06-08)
parents 22e42640bcff
children 9312a7006284
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Wed Jun 08 14:05:21 2005 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Wed Jun 08 15:13:07 2005 +0000
     1.3 @@ -597,7 +597,7 @@ int construct_dom0(struct domain *d,
     1.4  
     1.5      memset(si->cmd_line, 0, sizeof(si->cmd_line));
     1.6      if ( cmdline != NULL )
     1.7 -        strncpy(si->cmd_line, cmdline, sizeof(si->cmd_line)-1);
     1.8 +        strncpy((char *)si->cmd_line, cmdline, sizeof(si->cmd_line)-1);
     1.9  
    1.10      /* Reinstate the caller's page tables. */
    1.11      write_ptbase(current);