diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-22 23:58:23 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-22 23:58:23 +0000 |
commit | a3fe43fbdc89aa51e266360dc93ed4a4445bebdb (patch) | |
tree | caff43dd70af497468c3bb248d26b6c25727ae7f /main/manager.c | |
parent | 08a88aab159b99588bf705e3e325813c07ae5d0f (diff) |
Fix compilations errors on 64-bit OpenBSD systems
In versiong 5.5, OpenBSD went to 64-bit time values. This requires a cast to
(long) when printing members of certain time structs.
Review: https://reviewboard.asterisk.org/r/4507
ASTERISK-24879 #close
Reported by: snuffy
Tested by: snuffy
patches:
openbsd-time64.diff uploaded by snuffy (License 5024)
........
Merged revisions 433268 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/manager.c')
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index c71f8779f..a2aae9a8d 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4464,7 +4464,7 @@ static int action_status(struct mansession *s, const struct message *m) S_OR(ast_channel_dialed(chan)->number.str, ""), S_COR(ast_channel_connected_effective_id(chan).number.valid, ast_channel_connected_effective_id(chan).number.str, "<unknown>"), S_COR(ast_channel_connected_effective_id(chan).name.valid, ast_channel_connected_effective_id(chan).name.str, "<unknown>"), - ast_channel_whentohangup(chan)->tv_sec, + (long)ast_channel_whentohangup(chan)->tv_sec, bridge ? bridge->uniqueid : "", ast_channel_linkedid(chan), ast_channel_appl(chan), |