mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +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:
@@ -643,7 +643,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
|
||||
chan->priority,
|
||||
chan->name,
|
||||
chan->callerid ? chan->callerid : "Unknown",
|
||||
date, time(NULL));
|
||||
date, (long) time(NULL));
|
||||
fclose(txt);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Error opening text file for output\n");
|
||||
@@ -809,7 +809,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
|
||||
txt = fopen(txtfile, "a");
|
||||
if (txt) {
|
||||
time(&end);
|
||||
fprintf(txt, "duration=%ld\n", end-start);
|
||||
fprintf(txt, "duration=%ld\n", (long)(end-start));
|
||||
fclose(txt);
|
||||
}
|
||||
/* Send e-mail if applicable */
|
||||
|
||||
Reference in New Issue
Block a user