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

Thomas Zimmermann <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
---
 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

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.