From 423bb749940f1e2c9dd946dc3ca72df1b355ed36 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 29 May 2012 06:25:59 -0400 Subject: [PATCH] Introduce virMacAddr typedef --- src/util/virmacaddr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/virmacaddr.h b/src/util/virmacaddr.h index f8d3e0c535..2119d2be1b 100644 --- a/src/util/virmacaddr.h +++ b/src/util/virmacaddr.h @@ -28,7 +28,9 @@ # define VIR_MAC_BUFLEN 6 # define VIR_MAC_PREFIX_BUFLEN 3 -# define VIR_MAC_STRING_BUFLEN VIR_MAC_BUFLEN * 3 +# define VIR_MAC_STRING_BUFLEN (VIR_MAC_BUFLEN * 3) + +typedef unsigned char virMacAddr[VIR_MAC_BUFLEN]; int virMacAddrCompare(const char *mac1, const char *mac2); void virMacAddrFormat(const unsigned char *addr,