diff mbox series

[07/22] hfp_hf_bluez5: Drop use of g_strconcat

Message ID 20240226033724.1460079-7-denkenz@gmail.com (mailing list archive)
State Superseded, archived
Headers show
Series [01/22] gprs: Remove g_strfreev and g_strdupv use | expand

Commit Message

Denis Kenzior Feb. 26, 2024, 3:36 a.m. UTC
Replace with l_strdup_printf instead
---
 plugins/hfp_hf_bluez5.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index d45dda9d4196..944d44ba3fc8 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -32,6 +32,7 @@ 
 #include <fcntl.h>
 #include <sys/socket.h>
 
+#include <ell/ell.h>
 #include <glib.h>
 
 #include <gdbus.h>
@@ -213,11 +214,9 @@  static struct ofono_modem *modem_register(const char *device, GDBusProxy *proxy)
 
 	dbus_message_iter_get_basic(&iter, &remote);
 
-	path = g_strconcat("hfp", device, NULL);
-
+	path = l_strdup_printf("hfp%s", device);
 	modem = ofono_modem_create(path, "hfp");
-
-	g_free(path);
+	l_free(path);
 
 	if (modem == NULL)
 		return NULL;