Fix compile time warnings

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2006-02-11 16:13:03 +00:00
parent 99f10b2e26
commit ada97b3723
2 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ static char *base64_encode(struct ast_channel *chan, char *cmd, char *data, char
}
ast_log(LOG_DEBUG, "data=%s\n",data);
res = ast_base64encode(buf, data, strlen(data), len);
res = ast_base64encode(buf, (unsigned char *)data, strlen(data), len);
ast_log(LOG_DEBUG, "res=%d\n", res);
return buf;
}
@@ -59,7 +59,7 @@ static char *base64_decode(struct ast_channel *chan, char *cmd, char *data, char
}
ast_log(LOG_DEBUG, "data=%s\n", data);
ast_base64decode(buf, data, len);
ast_base64decode((unsigned char *)buf, data, len);
return buf;
}

View File

@@ -20,6 +20,7 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>