summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorBJ Weschke <bweschke@btwtech.com>2006-05-08 12:32:44 +0000
committerBJ Weschke <bweschke@btwtech.com>2006-05-08 12:32:44 +0000
commit569ecaf5a2c4431205961ee408565e2290a4e795 (patch)
tree367c266da058b7b10d82afc027fcf6d4469b4a72 /pbx
parent714aab87bb5fcf773c63ffc922454c917212c53f (diff)
use pid_t instead of long for pid variables. #7099 (casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_spool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index e7136aa44..132508a65 100644
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -66,7 +66,7 @@ struct outgoing {
/* How long to wait for an answer */
int waittime;
/* PID which is currently calling */
- int callingpid;
+ long callingpid;
/* What to connect to outgoing */
char tech[256];
@@ -193,7 +193,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
} else if (!strcasecmp(buf, "retry")) {
o->retries++;
} else if (!strcasecmp(buf, "startretry")) {
- if (sscanf(c, "%d", &o->callingpid) != 1) {
+ if (sscanf(c, "%ld", &o->callingpid) != 1) {
ast_log(LOG_WARNING, "Unable to retrieve calling PID!\n");
o->callingpid = 0;
}