[PATCH 3/7] dbus-launch: Protect |concat2| by DBUS_ENABLE_EMBEDDED_TESTS

Thomas Zimmermann tdz at users.sourceforge.net
Tue Aug 9 19:18:28 UTC 2016


Signed-off-by: Thomas Zimmermann <tdz at users.sourceforge.net>
---
 tools/dbus-launch.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 3d388fb..93b8171 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -205,6 +205,7 @@ xstrdup (const char *str)
   return copy;
 }
 
+#ifdef DBUS_ENABLE_EMBEDDED_TESTS
 static char *
 concat2 (const char *a,
     const char *b)
@@ -224,6 +225,7 @@ concat2 (const char *a,
   memcpy (ret + la, b, lb + 1);
   return ret;
 }
+#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
 
 typedef enum
 {
-- 
2.7.4



More information about the dbus mailing list