[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix gcc4 build.



ChangeSet 1.1700, 2005/06/08 16:13:07+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Fix gcc4 build.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 domain_build.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       2005-06-08 12:02:17 -04:00
+++ b/xen/arch/x86/domain_build.c       2005-06-08 12:02:17 -04:00
@@ -597,7 +597,7 @@
 
     memset(si->cmd_line, 0, sizeof(si->cmd_line));
     if ( cmdline != NULL )
-        strncpy(si->cmd_line, cmdline, sizeof(si->cmd_line)-1);
+        strncpy((char *)si->cmd_line, cmdline, sizeof(si->cmd_line)-1);
 
     /* Reinstate the caller's page tables. */
     write_ptbase(current);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.