hvm: Clean up firmware compilation warnings.
authorKeir Fraser <keir@xensource.com>
Fri, 26 Oct 2007 08:58:43 +0000 (09:58 +0100)
committerKeir Fraser <keir@xensource.com>
Fri, 26 Oct 2007 08:58:43 +0000 (09:58 +0100)
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
tools/firmware/hvmloader/acpi/build.c
tools/firmware/rombios/32bit/tcgbios/tcgbios.c

index 55dfa5e4d3ce61e42b232311b408dfbf1b4e19b4..0d9b115e35c8ff975da62f8e885487d37f56b3a7 100644 (file)
@@ -226,7 +226,7 @@ static int construct_processor_objects(uint8_t *buf)
     }
 
     /* NameString */
-    strncpy(p, pr_scope, strlen(pr_scope));
+    strncpy((char *)p, pr_scope, strlen(pr_scope));
     p += strlen(pr_scope);
 
     /*
index 5e548bd2c2726c6f3bea4844e965d480058b316b..00f929f6c5cf561bbb364051438de781b83c4eb7 100644 (file)
@@ -591,7 +591,7 @@ void tcpa_add_measurement(uint32_t pcrIndex,
        case EV_SEPARATOR:
                tcpa_add_measurement_to_log_simple(pcrIndex,
                                            event_type,
-                                           evt_separator,
+                                           (uint8_t *)evt_separator,
                                            4);
        break;
        case EV_ACTION: