From b285600adcafd22c5846cff5cebebb44002161ae Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 2 Apr 2008 17:34:22 +0000 Subject: [PATCH] Use ETH_ALEN git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3524 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- libnm-util/nm-setting-wired.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnm-util/nm-setting-wired.c b/libnm-util/nm-setting-wired.c index d2bea6586b..37851ea18c 100644 --- a/libnm-util/nm-setting-wired.c +++ b/libnm-util/nm-setting-wired.c @@ -1,5 +1,6 @@ /* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ +#include #include #include "nm-setting-wired.h" #include "nm-param-spec-specialized.h" @@ -42,7 +43,7 @@ verify (NMSetting *setting, GSList *all_settings) return FALSE; } - if (self->mac_address && self->mac_address->len != 6) { + if (self->mac_address && self->mac_address->len != ETH_ALEN) { g_warning ("Invalid mac address"); return FALSE; }