diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 15:08:15 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 15:08:15 +0000 |
commit | 2b68aee8293cf43f29dc5cf7ac1f23ff612c4a61 (patch) | |
tree | c74c8ce96351990bd6e54b6d2f898bae24821aa7 /extras/mini-os | |
parent | 9e20e8426ff5e81d0d1e3b5aaddf2e906eaf82ce (diff) | |
download | xen-2b68aee8293cf43f29dc5cf7ac1f23ff612c4a61.tar.gz xen-2b68aee8293cf43f29dc5cf7ac1f23ff612c4a61.tar.bz2 xen-2b68aee8293cf43f29dc5cf7ac1f23ff612c4a61.zip |
[MINIOS] Fix compile warnings with -O.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Diffstat (limited to 'extras/mini-os')
-rw-r--r-- | extras/mini-os/arch/x86/mm.c | 1 | ||||
-rw-r--r-- | extras/mini-os/netfront.c | 2 | ||||
-rw-r--r-- | extras/mini-os/xenbus/xenbus.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/extras/mini-os/arch/x86/mm.c b/extras/mini-os/arch/x86/mm.c index 20031a002e..d0fe762792 100644 --- a/extras/mini-os/arch/x86/mm.c +++ b/extras/mini-os/arch/x86/mm.c @@ -61,6 +61,7 @@ void new_pt_frame(unsigned long *pt_pfn, unsigned long prev_l_mfn, mmu_update_t mmu_updates[1]; struct mmuext_op pin_request; + prot_e = prot_t = pincmd = 0; DEBUG("Allocating new L%d pt frame for pt_pfn=%lx, " "prev_l_mfn=%lx, offset=%lx", level, *pt_pfn, prev_l_mfn, offset); diff --git a/extras/mini-os/netfront.c b/extras/mini-os/netfront.c index a013cdbe80..3871160d55 100644 --- a/extras/mini-os/netfront.c +++ b/extras/mini-os/netfront.c @@ -327,7 +327,6 @@ done: printk("backend at %s\n",backend); printk("mac is %s\n",mac); - char *res; char path[256]; sprintf(path,"%s/state",backend); @@ -336,7 +335,6 @@ done: xenbus_wait_for_value(path,"4"); //free(backend); - free(res); printk("**************************\n"); diff --git a/extras/mini-os/xenbus/xenbus.c b/extras/mini-os/xenbus/xenbus.c index 09ededbab1..1a0f0e048f 100644 --- a/extras/mini-os/xenbus/xenbus.c +++ b/extras/mini-os/xenbus/xenbus.c @@ -103,7 +103,7 @@ char* xenbus_wait_for_value(const char* path,const char* value) static void xenbus_thread_func(void *ign) { struct xsd_sockmsg msg; - unsigned prod; + unsigned prod = 0; for (;;) { |