aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_spool.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-08 12:32:44 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-08 12:32:44 +0000
commit0c3d4f795975d9650a9cf951f1f38319285b7fca (patch)
tree367c266da058b7b10d82afc027fcf6d4469b4a72 /pbx/pbx_spool.c
parentfd6e0fdfcbe89e6ae1b122d220a74f6409bcb96e (diff)
use pid_t instead of long for pid variables. #7099 (casper)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25488 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_spool.c')
-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;
}