diff options
author | Denis Kenzior <denkenz@gmail.com> | 2014-06-21 12:02:05 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2014-06-21 12:02:05 -0500 |
commit | 3e13676766e05e80b7a1b95cb8ebd06f4a362350 (patch) | |
tree | fae5420fce7bf1ea70826315c2b99d6163dab695 /src | |
parent | 73831c3d76163292aaff76ec407c21da149a6ce3 (diff) | |
download | ofono-3e13676766e05e80b7a1b95cb8ebd06f4a362350.tar.bz2 |
gprs: Make the code a bit easier to read
Diffstat (limited to 'src')
-rw-r--r-- | src/gprs.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1812,6 +1812,8 @@ static DBusMessage *gprs_set_property(DBusConnection *conn, static void write_context_settings(struct ofono_gprs *gprs, struct pri_context *context) { + const char *auth_method; + g_key_file_set_string(gprs->settings, context->key, "Name", context->name); g_key_file_set_string(gprs->settings, context->key, @@ -1820,10 +1822,11 @@ static void write_context_settings(struct ofono_gprs *gprs, "Username", context->context.username); g_key_file_set_string(gprs->settings, context->key, "Password", context->context.password); + + auth_method = gprs_auth_method_to_string(context->context.auth_method); g_key_file_set_string(gprs->settings, context->key, - "AuthenticationMethod", - gprs_auth_method_to_string( - context->context.auth_method)); + "AuthenticationMethod", auth_method); + g_key_file_set_string(gprs->settings, context->key, "Type", gprs_context_type_to_string(context->type)); g_key_file_set_string(gprs->settings, context->key, "Protocol", |