aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2024-02-13 09:24:42 -0600
committerDenis Kenzior <denkenz@gmail.com>2024-02-13 09:33:26 -0600
commitad10d7b0189c2d7e439c3ef8b3946c9ded74fb4b (patch)
treea822a1ac63025d6554f64fb2ee44c93783ed0c48
parent43989a59566a46ff8837a64e36f15e133ab26b33 (diff)
downloadofono-ad10d7b0189c2d7e439c3ef8b3946c9ded74fb4b.tar.gz
common: Convert use of g_ascii* to ell
Also remove the glib header include since no other GLib use remains.
-rw-r--r--src/common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common.c b/src/common.c
index 859f14670..aff356da3 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] == '-')