From 94fabafc1ad7ce4ae711ef4a9e0b0ff807e66692 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 18 Jan 2016 12:34:02 +0100 Subject: [PATCH] platform: use RT_SCOPE_* names in nm_platform_route_scope2str() --- src/platform/nm-platform.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 960f85de19..0e1c384140 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -3480,19 +3480,19 @@ nm_platform_route_scope2str (int scope, char *buf, gsize len) nm_utils_to_string_buffer_init (&buf, &len); switch (scope) { - case 255: + case RT_SCOPE_NOWHERE: g_snprintf (buf, len, "nowhere"); break; - case 254: + case RT_SCOPE_HOST: g_snprintf (buf, len, "host"); break; - case 253: + case RT_SCOPE_LINK: g_snprintf (buf, len, "link"); break; - case 200: + case RT_SCOPE_SITE: g_snprintf (buf, len, "site"); break; - case 0: + case RT_SCOPE_UNIVERSE: g_snprintf (buf, len, "global"); break; default: