|
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]; } MacAddressWhy the extra struct?
To make the type strong so that type checking actually works. Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |