aboutsummaryrefslogtreecommitdiff
path: root/hw/slavio_serial.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-10 10:12:00 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-10 10:12:00 +0000
commit22548760ca36e3c9c716bf725194a846d1073855 (patch)
tree57643945499692088cb5d186a1fd5579ef4b8bbc /hw/slavio_serial.c
parent9800ee2677ab1f6d506a03086a2fbfe66fe09f5c (diff)
downloadqemu-22548760ca36e3c9c716bf725194a846d1073855.zip
qemu-22548760ca36e3c9c716bf725194a846d1073855.tar.gz
qemu-22548760ca36e3c9c716bf725194a846d1073855.tar.bz2
Fix compiler warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4404 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/slavio_serial.c')
-rw-r--r--hw/slavio_serial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/slavio_serial.c b/hw/slavio_serial.c
index 03bd534..37424c6 100644
--- a/hw/slavio_serial.c
+++ b/hw/slavio_serial.c
@@ -92,8 +92,8 @@ typedef struct {
#define SERIAL_REGS 16
typedef struct ChannelState {
qemu_irq irq;
- int reg;
- int rxint, txint, rxint_under_svc, txint_under_svc;
+ uint32_t reg;
+ uint32_t rxint, txint, rxint_under_svc, txint_under_svc;
chn_id_t chn; // this channel, A (base+4) or B (base+0)
chn_type_t type;
struct ChannelState *otherchn;
@@ -656,8 +656,8 @@ static CPUWriteMemoryFunc *slavio_serial_mem_write[3] = {
static void slavio_serial_save_chn(QEMUFile *f, ChannelState *s)
{
- int tmp;
- tmp = 0;
+ uint32_t tmp = 0;
+
qemu_put_be32s(f, &tmp); /* unused, was IRQ. */
qemu_put_be32s(f, &s->reg);
qemu_put_be32s(f, &s->rxint);
@@ -680,7 +680,7 @@ static void slavio_serial_save(QEMUFile *f, void *opaque)
static int slavio_serial_load_chn(QEMUFile *f, ChannelState *s, int version_id)
{
- int tmp;
+ uint32_t tmp;
if (version_id > 2)
return -EINVAL;