summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-04-18 09:07:24 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-18 14:17:01 +0300
commit1d1f9c7ccabdcaa74cdb5c4c791fc2bdb32ec42b (patch)
tree118acd7e57070e185764c1c4823283bc20b183b4 /src/session.c
parent522a55abc20d675350addb6de4d627f52bc9ed23 (diff)
downloadconnman-1d1f9c7ccabdcaa74cdb5c4c791fc2bdb32ec42b.tar.gz
connman-1d1f9c7ccabdcaa74cdb5c4c791fc2bdb32ec42b.tar.bz2
connman-1d1f9c7ccabdcaa74cdb5c4c791fc2bdb32ec42b.zip
session: Change to "func_t" postfix to callback typedef
Streamline the callback typedefs with the rest of the code.
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.c b/src/session.c
index d06edc81..5a6065f6 100644
--- a/src/session.c
+++ b/src/session.c
@@ -313,7 +313,7 @@ static void cleanup_user_config(struct user_config *user_config)
}
static int create_policy_config(struct connman_session *session,
- connman_session_config_cb callback,
+ connman_session_config_func_t cb,
struct user_config *user_config)
{
struct connman_session_config *config;
@@ -326,10 +326,10 @@ static int create_policy_config(struct connman_session *session,
return -ENOMEM;
}
- return callback(session, config, user_config, 0);
+ return cb(session, config, user_config, 0);
}
- return (*session->policy->create)(session, callback, user_config);
+ return (*session->policy->create)(session, cb, user_config);
}
static void probe_policy(struct connman_session_policy *policy)