From 655a0e71d485b46d385453370be2f6c6760461ce Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 27 Apr 2015 15:41:33 +0200 Subject: [PATCH] platform: expose internal buffer for to_string() functions I'd like to reuse this buffer for other to-string functions that are platform related. --- src/platform/nm-platform.c | 2 +- src/platform/nm-platform.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 5adc1b2090..0963e00161 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -2435,7 +2435,7 @@ _lifetime_summary_to_string (gint32 now, guint32 timestamp, guint32 preferred, g return buf; } -static char _nm_platform_to_string_buffer[256]; +char _nm_platform_to_string_buffer[256]; const char * nm_platform_link_to_string (const NMPlatformLink *link) diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h index ec370b8733..c6145c56d2 100644 --- a/src/platform/nm-platform.h +++ b/src/platform/nm-platform.h @@ -315,6 +315,7 @@ typedef struct { extern const NMPlatformVTableRoute nm_platform_vtable_route_v4; extern const NMPlatformVTableRoute nm_platform_vtable_route_v6; +extern char _nm_platform_to_string_buffer[256]; typedef struct { int peer;