diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-23 00:05:48 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-23 00:05:48 +0000 |
commit | 60f01520e74c7c043e506dfb65c787148205fa93 (patch) | |
tree | 3b5b534395d69dcb0389814064244f2db0ba49df /main/cli.c | |
parent | 66670f02e6d662bee74e9a9cefc947da3bd1ed6f (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
........
Merged revisions 433269 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c index 1d9d82ce8..1edb1f49f 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1644,7 +1644,7 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar ast_str_buffer(write_transpath), ast_str_strlen(read_transpath) ? "Yes" : "No", ast_str_buffer(read_transpath), - ast_channel_whentohangup(chan)->tv_sec, + (long)ast_channel_whentohangup(chan)->tv_sec, cdrtime, bridge ? bridge->uniqueid : "(Not bridged)", ast_channel_context(chan), |