mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
BSD portability enhancements (bug #234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1372,7 +1372,7 @@ static int queues_show(int fd, int argc, char **argv)
|
||||
strcat(max, " (dynamic)");
|
||||
if (mem->calls) {
|
||||
snprintf(calls, sizeof(calls), " has taken %d calls (last was %ld secs ago)",
|
||||
mem->calls, time(NULL) - mem->lastcall);
|
||||
mem->calls, (long)(time(NULL) - mem->lastcall));
|
||||
} else
|
||||
strcpy(calls, " has taken no calls yet");
|
||||
ast_cli(fd, " %s/%s%s%s\n", mem->tech, mem->loc, max, calls);
|
||||
|
Reference in New Issue
Block a user