direct-io.hg

changeset 13739:c834e3984baa

[XEN] Fix build breakage with gcc 4.1.2.

domain_build.c: In function 'construct_dom' :
domain_build.c:874: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness

Unfortunately adding a simple cast to (char *) doesn't work since that
confuses safe_strcpy so revert to using strlcpy directly.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Jan 31 10:40:38 2007 +0000 (2007-01-31)
parents daed6ac9d1f7
children d653e4bcead0
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Wed Jan 31 10:25:12 2007 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Wed Jan 31 10:40:38 2007 +0000
     1.3 @@ -871,7 +871,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 -        safe_strcpy(si->cmd_line, cmdline);
     1.8 +        strlcpy((char *)si->cmd_line, cmdline, sizeof(si->cmd_line));
     1.9  
    1.10      if ( fill_console_start_info((void *)(si + 1)) )
    1.11      {