Skip to contentSkip to conversation

common: Drop GLib use from gprs_proto_to_string

PATCH Applied Ivaylo Dimitrov 2 participants 2 messages Feb 12, 2024 – Feb 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common: Drop GLib use from gprs_proto_to_string

there is one more g_str_equal usage(), fix that

Fixes 6f63dbbb ("common: Drop GLib use from gprs_auth_proto_to_string")

---
 src/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/common.c +1 -1
index abb151b6..859f1467 100644
@@ -756,7 +756,7 @@ bool gprs_proto_from_string(const char *str, enum ofono_gprs_proto *proto)
 	} else if (l_streq0(str, "ipv6")) {
 		*proto = OFONO_GPRS_PROTO_IPV6;
 		return true;
-	} else if (g_str_equal(str, "dual")) {
+	} else if (l_streq0(str, "dual")) {
 		*proto = OFONO_GPRS_PROTO_IPV4V6;
 		return true;
 	}
Signature · 1 line
2.30.2
#1 lore raw
This patch was applied to ofono.git (master) by Denis Kenzior <[email protected]>:

Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <[email protected]>:

Quoted 6 lines · On Mon, 12 Feb 2024 22:35:40 +0200 you wrote:

there is one more g_str_equal usage(), fix that

Fixes 6f63dbbb ("common: Drop GLib use from gprs_auth_proto_to_string")

---
 src/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- common: Drop GLib use from gprs_proto_to_string

    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=1d7f24b5c15d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html