mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
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:
@@ -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);
|
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);
|
ast_log(LOG_DEBUG, "res=%d\n", res);
|
||||||
return buf;
|
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_log(LOG_DEBUG, "data=%s\n", data);
|
||||||
ast_base64decode(buf, data, len);
|
ast_base64decode((unsigned char *)buf, data, len);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
Reference in New Issue
Block a user