diff mbox series

[4/6] qmimodem: Drop use of g_utf8_validate

Message ID 20240205213150.1001245-4-denkenz@gmail.com (mailing list archive)
State Accepted
Commit 39e2707386fd0e2ec14eb7563ad21ea1c0ee0e84
Headers show
Series [1/6] stkagent: Use l_utf8_get_codepoint | expand

Commit Message

Denis Kenzior Feb. 5, 2024, 9:31 p.m. UTC
Use l_utf8_validate instead.
---
 drivers/qmimodem/network-registration.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/qmimodem/network-registration.c b/drivers/qmimodem/network-registration.c
index 3fa0c9e442fb..6bc8fbc5d226 100644
--- a/drivers/qmimodem/network-registration.c
+++ b/drivers/qmimodem/network-registration.c
@@ -32,6 +32,8 @@ 
 #include <ofono/modem.h>
 #include <ofono/netreg.h>
 
+#include <ell/ell.h>
+
 #include "qmi.h"
 #include "nas.h"
 #include "util.h"
@@ -153,7 +155,7 @@  static bool extract_ss_info(struct qmi_result *result, int *status,
 		 * plmn-desc. When that happens, libdbus will abort ofono.
 		 * If non-utf-8 characters are detected, use mccmnc string.
 		 */
-		if (g_utf8_validate(plmn->desc, opname_len, NULL)) {
+		if (l_utf8_validate(plmn->desc, opname_len, NULL)) {
 			strncpy(operator->name, plmn->desc, opname_len);
 			operator->name[opname_len] = '\0';
 		} else