qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH v2 1/5] net: macaddr tweaks.


From: Anthony Liguori
Subject: Re: [Qemu-devel] [RFC PATCH v2 1/5] net: macaddr tweaks.
Date: Wed, 07 Oct 2009 08:23:18 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

Gerd Hoffmann wrote:
+typedef uint8_t macaddr_t[6];

Let's make it a stronger type and avoid introducing more _t types. I'd
suggest:

Oh yes, killing that _t was on the todo list anyway, forgot it.
Will do for the next respin.

typedef struct MacAddress
{
uint8_t addr[6];
} MacAddress

Why the extra struct?

To make the type strong so that type checking actually works.

Regards,

Anthony Liguori




reply via email to

[Prev in Thread] Current Thread [Next in Thread]