diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-06-08 20:49:00 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-06-08 20:49:00 +0000 |
commit | 8b2412db289b43202ef33053fb4efc4481d99bd4 (patch) | |
tree | 2b32104f4cb3176802581a4ceb4d7c58d91d6200 /main/channel.c | |
parent | 4ca35e090740f3df3450f4ed11abecf68c2546cc (diff) |
Tweak ast_channel_softhangup_withcause_locked() to take a typed parameter.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/main/channel.c b/main/channel.c index 8bd973501..bfca3ec8d 100644 --- a/main/channel.c +++ b/main/channel.c @@ -602,10 +602,8 @@ int ast_check_hangup_locked(struct ast_channel *chan) return res; } -int ast_channel_softhangup_withcause_locked(void *obj, int causecode) +void ast_channel_softhangup_withcause_locked(struct ast_channel *chan, int causecode) { - struct ast_channel *chan = obj; - ast_channel_lock(chan); if (causecode > 0) { @@ -618,8 +616,6 @@ int ast_channel_softhangup_withcause_locked(void *obj, int causecode) ast_softhangup_nolock(chan, AST_SOFTHANGUP_EXPLICIT); ast_channel_unlock(chan); - - return 0; } static int ast_channel_softhangup_cb(void *obj, void *arg, int flags) |