From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG1GN-0007N1-PX for qemu-devel@nongnu.org; Sat, 22 May 2010 22:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OG1GM-00005d-BQ for qemu-devel@nongnu.org; Sat, 22 May 2010 22:50:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34262) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OG1GM-0008W0-2u for qemu-devel@nongnu.org; Sat, 22 May 2010 22:50:02 -0400 From: akong@redhat.com Date: Sun, 23 May 2010 10:49:10 +0800 Message-Id: <1274582950-4418-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH] Virtio-net: Replace the hardcode 6 with defined ETN_ALEN List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, Amos Kong , alex.williamson@hp.com From: Amos Kong hw/virtio-net.h: #define ETH_ALEN 6 ETH_ALEN was defined by commit 7967406801aa897fae83caad3278ac85a342adaa Signed-off-by: Amos Kong --- hw/virtio-net.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio-net.h b/hw/virtio-net.h index e55119b..235f1a9 100644 --- a/hw/virtio-net.h +++ b/hw/virtio-net.h @@ -54,8 +54,8 @@ struct virtio_net_config { - /* The config defining mac address (6 bytes) */ - uint8_t mac[6]; + /* The config defining mac address ($ETH_ALEN bytes) */ + uint8_t mac[ETH_ALEN]; /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ uint16_t status; } __attribute__((packed)); -- 1.7.0.4