diff mbox series

[5/6] common: Convert use of g_ascii* to ell

Message ID 20240213153524.1085649-5-denkenz@gmail.com (mailing list archive)
State Accepted
Commit ad10d7b0189c2d7e439c3ef8b3946c9ded74fb4b
Headers show
Series [1/6] sim: Drop glib use from sim_efli_format | expand

Commit Message

Denis Kenzior Feb. 13, 2024, 3:35 p.m. UTC
Also remove the glib header include since no other GLib use remains.
---
 src/common.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/common.c b/src/common.c
index 859f146702ec..aff356da3330 100644
--- a/src/common.c
+++ b/src/common.c
@@ -27,7 +27,6 @@ 
 #include <string.h>
 #include <errno.h>
 
-#include <glib.h>
 #include <ell/ell.h>
 
 #include <ofono/types.h>
@@ -561,7 +560,7 @@  gboolean parse_ss_control_string(char *str, int *ss_type,
 		goto out;
 
 	for (i = 0; i < strlen(*sc); i++)
-		if (!g_ascii_isdigit((*sc)[i]))
+		if (!l_ascii_isdigit((*sc)[i]))
 			goto out;
 
 	NEXT_FIELD(c, *sia);
@@ -681,7 +680,7 @@  gboolean is_valid_apn(const char *apn)
 		return FALSE;
 
 	for (i = 0; apn[i] != '\0'; i++) {
-		if (g_ascii_isalnum(apn[i]))
+		if (l_ascii_isalnum(apn[i]))
 			continue;
 
 		if (apn[i] == '-')