[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5361] Few compile time warnings removed (Stefano Stabellin
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [5361] Few compile time warnings removed (Stefano Stabellini) |
Date: |
Tue, 30 Sep 2008 18:12:19 +0000 |
Revision: 5361
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5361
Author: blueswir1
Date: 2008-09-30 18:12:18 +0000 (Tue, 30 Sep 2008)
Log Message:
-----------
Few compile time warnings removed (Stefano Stabellini)
Modified Paths:
--------------
trunk/vl.c
Modified: trunk/vl.c
===================================================================
--- trunk/vl.c 2008-09-30 06:45:44 UTC (rev 5360)
+++ trunk/vl.c 2008-09-30 18:12:18 UTC (rev 5361)
@@ -71,7 +71,7 @@
#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__)
#include <freebsd/stdlib.h>
#else
-#ifndef __sun__
+#ifdef __linux__
#include <linux/if.h>
#include <linux/if_tun.h>
#include <pty.h>
@@ -85,7 +85,8 @@
#include <linux/ppdev.h>
#include <linux/parport.h>
-#else
+#endif
+#ifdef __sun__
#include <sys/stat.h>
#include <sys/ethernet.h>
#include <sys/sockio.h>
@@ -1680,7 +1681,7 @@
static void init_timer_alarm(void)
{
- struct qemu_alarm_timer *t;
+ struct qemu_alarm_timer *t = NULL;
int i, err = -1;
for (i = 0; alarm_timers[i].name; i++) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5361] Few compile time warnings removed (Stefano Stabellini),
Blue Swirl <=