summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-09-08 16:48:07 +0000
committerMark Spencer <markster@digium.com>2003-09-08 16:48:07 +0000
commit479a67e629385a2c43bf9383c0c23f5dae032504 (patch)
tree32674bc8c5dc21153e7c8a4548f6641aef0566bf /channel.c
parent1e19f72077a8e2f5befb21bb5c3f2131f8b24107 (diff)
BSD portability enhancements (bug #234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 908194392..2ecde4fee 100755
--- a/channel.c
+++ b/channel.c
@@ -318,7 +318,7 @@ struct ast_channel *ast_channel_alloc(int needqueue)
tmp->data = NULL;
tmp->fin = 0;
tmp->fout = 0;
- snprintf(tmp->uniqueid, sizeof(tmp->uniqueid), "%li.%d", time(NULL), uniqueint++);
+ snprintf(tmp->uniqueid, sizeof(tmp->uniqueid), "%li.%d", (long)time(NULL), uniqueint++);
headp=&tmp->varshead;
ast_mutex_init(&tmp->lock);
AST_LIST_HEAD_INIT(headp);
@@ -653,7 +653,7 @@ int ast_hangup(struct ast_channel *chan)
if (chan->blocking) {
ast_log(LOG_WARNING, "Hard hangup called by thread %ld on %s, while fd "
"is blocked by thread %ld in procedure %s! Expect a failure\n",
- pthread_self(), chan->name, chan->blocker, chan->blockproc);
+ (long)pthread_self(), chan->name, (long)chan->blocker, chan->blockproc);
CRASH;
}
if (!chan->zombie) {