aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_minivm.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-22 23:17:04 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-22 23:17:04 +0000
commit4b7edd9453ee41c350453a1fcb18b44ddc4b67a9 (patch)
tree946ce802dfee85453b85d3bb2ee8356d67779d49 /apps/app_minivm.c
parent32ba58336e31fb9944fc43efff6fc79633fb755f (diff)
Cast calls to getpid. This was done in 1.4 already, this one was just new
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80428 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r--apps/app_minivm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index 1841e5267..30fbdc72b 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1039,7 +1039,7 @@ static int sendmail(struct minivm_template *template, struct minivm_account *vmu
}
ast_debug(4, "-_-_- Fromstring now: %s\n", ast_strlen_zero(passdata) ? "-default-" : passdata);
- fprintf(p, "Message-ID: <Asterisk-%d-%s-%d-%s>\n", (unsigned int)rand(), vmu->username, getpid(), who);
+ fprintf(p, "Message-ID: <Asterisk-%d-%s-%d-%s>\n", (unsigned int)rand(), vmu->username, (int)getpid(), who);
len_passdata = strlen(vmu->fullname) * 2 + 3;
passdata2 = alloca(len_passdata);
if (!ast_strlen_zero(vmu->email))
@@ -1073,7 +1073,7 @@ static int sendmail(struct minivm_template *template, struct minivm_account *vmu
fprintf(p, "MIME-Version: 1.0\n");
/* Something unique. */
- snprintf(bound, sizeof(bound), "voicemail_%s%d%d", vmu->username, getpid(), (unsigned int)rand());
+ snprintf(bound, sizeof(bound), "voicemail_%s%d%d", vmu->username, (int)getpid(), (unsigned int)rand());
fprintf(p, "Content-Type: multipart/mixed; boundary=\"%s\"\n\n\n", bound);