aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-19 00:33:44 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-19 00:33:44 +0000
commit58b98df732c92339173863e4bc521b24a09b1211 (patch)
treef90fd4b3b961788e14a46feeb9d1965c1167e7c8 /channel.c
parent83f628caebdd3a4f4379aa3075b4a030f30d4bca (diff)
convert lists of constants in channel.h to enums instead of #defines
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40424 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 1338741a6..cbcfa0afa 100644
--- a/channel.c
+++ b/channel.c
@@ -492,7 +492,7 @@ int ast_str2cause(const char *name)
}
/*! \brief Gives the string form of a given channel state */
-char *ast_state2str(int state)
+char *ast_state2str(enum ast_channel_state state)
{
char *buf;
@@ -3340,7 +3340,7 @@ void ast_set_callerid(struct ast_channel *chan, const char *callerid, const char
);
}
-int ast_setstate(struct ast_channel *chan, int state)
+int ast_setstate(struct ast_channel *chan, enum ast_channel_state state)
{
int oldstate = chan->_state;