summaryrefslogtreecommitdiff
path: root/comms/asterisk16/patches/patch-ay
diff options
context:
space:
mode:
Diffstat (limited to 'comms/asterisk16/patches/patch-ay')
-rw-r--r--comms/asterisk16/patches/patch-ay84
1 files changed, 0 insertions, 84 deletions
diff --git a/comms/asterisk16/patches/patch-ay b/comms/asterisk16/patches/patch-ay
deleted file mode 100644
index 61fd3b8b6d2..00000000000
--- a/comms/asterisk16/patches/patch-ay
+++ /dev/null
@@ -1,84 +0,0 @@
-$NetBSD: patch-ay,v 1.2 2009/07/07 08:14:43 jnemeth Exp $
-
---- main/features.c.orig 2009-04-09 20:56:37.000000000 -0700
-+++ main/features.c
-@@ -693,12 +693,12 @@ static int ast_park_call_full(struct ast
- "Channel: %s\r\n"
- "Parkinglot: %s\r\n"
- "From: %s\r\n"
-- "Timeout: %ld\r\n"
-+ "Timeout: %jd\r\n"
- "CallerIDNum: %s\r\n"
- "CallerIDName: %s\r\n"
- "Uniqueid: %s\r\n",
- pu->parkingexten, pu->chan->name, pu->parkinglot->name, event_from ? event_from : "",
-- (long)pu->start.tv_sec + (long)(pu->parkingtime/1000) - (long)time(NULL),
-+ (intmax_t)pu->start.tv_sec + (intmax_t)(pu->parkingtime/1000) - (intmax_t)time(NULL),
- S_OR(pu->chan->cid.cid_num, "<unknown>"),
- S_OR(pu->chan->cid.cid_name, "<unknown>"),
- pu->chan->uniqueid
-@@ -979,7 +979,7 @@ static int builtin_automonitor(struct as
- len = strlen(touch_monitor) + 50;
- args = alloca(len);
- touch_filename = alloca(len);
-- snprintf(touch_filename, len, "%s-%ld-%s", S_OR(touch_monitor_prefix, "auto"), (long)time(NULL), touch_monitor);
-+ snprintf(touch_filename, len, "%s-%jd-%s", S_OR(touch_monitor_prefix, "auto"), (intmax_t)time(NULL), touch_monitor);
- snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename);
- } else {
- caller_chan_id = ast_strdupa(S_OR(caller_chan->cid.cid_num, caller_chan->name));
-@@ -987,7 +987,7 @@ static int builtin_automonitor(struct as
- len = strlen(caller_chan_id) + strlen(callee_chan_id) + 50;
- args = alloca(len);
- touch_filename = alloca(len);
-- snprintf(touch_filename, len, "%s-%ld-%s-%s", S_OR(touch_monitor_prefix, "auto"), (long)time(NULL), caller_chan_id, callee_chan_id);
-+ snprintf(touch_filename, len, "%s-%jd-%s-%s", S_OR(touch_monitor_prefix, "auto"), (intmax_t)time(NULL), caller_chan_id, callee_chan_id);
- snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename);
- }
-
-@@ -1092,7 +1092,7 @@ static int builtin_automixmonitor(struct
- len = strlen(touch_monitor) + 50;
- args = alloca(len);
- touch_filename = alloca(len);
-- snprintf(touch_filename, len, "auto-%ld-%s", (long)time(NULL), touch_monitor);
-+ snprintf(touch_filename, len, "auto-%jd-%s", (intmax_t)time(NULL), touch_monitor);
- snprintf(args, len, "%s.%s,b", touch_filename, (touch_format) ? touch_format : "wav");
- } else {
- caller_chan_id = ast_strdupa(S_OR(caller_chan->cid.cid_num, caller_chan->name));
-@@ -1100,7 +1100,7 @@ static int builtin_automixmonitor(struct
- len = strlen(caller_chan_id) + strlen(callee_chan_id) + 50;
- args = alloca(len);
- touch_filename = alloca(len);
-- snprintf(touch_filename, len, "auto-%ld-%s-%s", (long)time(NULL), caller_chan_id, callee_chan_id);
-+ snprintf(touch_filename, len, "auto-%jd-%s-%s", (intmax_t)time(NULL), caller_chan_id, callee_chan_id);
- snprintf(args, len, "%s.%s,b", touch_filename, S_OR(touch_format, "wav"));
- }
-
-@@ -4194,10 +4194,10 @@ static char *handle_parkedcalls(struct a
-
- AST_LIST_LOCK(&curlot->parkings);
- AST_LIST_TRAVERSE(&curlot->parkings, cur, list) {
-- ast_cli(a->fd, "%-10.10s %25s (%-15s %-12s %-4d) %6lds\n"
-+ ast_cli(a->fd, "%-10.10s %25s (%-15s %-12s %-4d) %6jds\n"
- ,cur->parkingexten, cur->chan->name, cur->context, cur->exten
- ,cur->priority,
-- (long)(cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL)) );
-+ (intmax_t)(cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL)) );
- numparked++;
- numparked += lotparked;
- }
-@@ -4249,13 +4249,13 @@ static int manager_parking_status(struct
- "Exten: %d\r\n"
- "Channel: %s\r\n"
- "From: %s\r\n"
-- "Timeout: %ld\r\n"
-+ "Timeout: %jd\r\n"
- "CallerIDNum: %s\r\n"
- "CallerIDName: %s\r\n"
- "%s"
- "\r\n",
- cur->parkingnum, cur->chan->name, cur->peername,
-- (long) cur->start.tv_sec + (long) (cur->parkingtime / 1000) - (long) time(NULL),
-+ (intmax_t) cur->start.tv_sec + (intmax_t) (cur->parkingtime / 1000) - (intmax_t) time(NULL),
- S_OR(cur->chan->cid.cid_num, ""), /* XXX in other places it is <unknown> */
- S_OR(cur->chan->cid.cid_name, ""),
- idText);