From 0c3d4f795975d9650a9cf951f1f38319285b7fca Mon Sep 17 00:00:00 2001 From: bweschke Date: Mon, 8 May 2006 12:32:44 +0000 Subject: 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 --- pbx/pbx_spool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbx/pbx_spool.c') 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; } -- cgit v1.2.3