summaryrefslogtreecommitdiff
path: root/res/res_crypto.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-13 21:25:10 +0000
committerMark Spencer <markster@digium.com>2004-06-13 21:25:10 +0000
commitd208532e6e81c1a25ca1664d9f8d2a2ac3ac145f (patch)
treebd4a3ebe7ebaab440e8bfb5016e2cd306e403300 /res/res_crypto.c
parent800ad7f7278ab8da93429948a152bea2740de077 (diff)
x86-64 compile fixes and cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_crypto.c')
-rwxr-xr-xres/res_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c
index e0cb6233c..2ebf4bef9 100755
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -405,7 +405,7 @@ int ast_sign(struct ast_key *key, char *msg, char *sig)
}
if (siglen != sizeof(dsig)) {
- ast_log(LOG_WARNING, "Unexpected signature length %d, expecting %d\n", siglen, sizeof(dsig));
+ ast_log(LOG_WARNING, "Unexpected signature length %d, expecting %d\n", (int)siglen, (int)sizeof(dsig));
return -1;
}
@@ -431,7 +431,7 @@ int ast_check_signature(struct ast_key *key, char *msg, char *sig)
/* Decode signature */
res = base64decode(dsig, sig, sizeof(dsig));
if (res != sizeof(dsig)) {
- ast_log(LOG_WARNING, "Signature improper length (expect %d, got %d)\n", sizeof(dsig), res);
+ ast_log(LOG_WARNING, "Signature improper length (expect %d, got %d)\n", (int)sizeof(dsig), (int)res);
return -1;
}