summaryrefslogtreecommitdiff
path: root/dpi/datauri.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/datauri.c')
-rw-r--r--dpi/datauri.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dpi/datauri.c b/dpi/datauri.c
index 468a2cf8..ef67e5ed 100644
--- a/dpi/datauri.c
+++ b/dpi/datauri.c
@@ -32,7 +32,7 @@ static SockHandler *sh = NULL;
-int b64decode(unsigned char* str)
+static int b64decode(unsigned char* str)
{
unsigned char *cur, *start;
int d, dlast, phase;
@@ -144,8 +144,8 @@ char *a_Url_decode_hex_str(const char *str, size_t *p_sz)
/*
* Send decoded data to dillo in an HTTP envelope.
*/
-void send_decoded_data(const char *url, const char *mime_type,
- unsigned char *data, size_t data_sz)
+static void send_decoded_data(const char *url, const char *mime_type,
+ unsigned char *data, size_t data_sz)
{
char *d_cmd;
@@ -163,8 +163,8 @@ void send_decoded_data(const char *url, const char *mime_type,
sock_handler_write(sh, 0, (char *)data, data_sz);
}
-void send_failure_message(const char *url, const char *mime_type,
- unsigned char *data, size_t data_sz)
+static void send_failure_message(const char *url, const char *mime_type,
+ unsigned char *data, size_t data_sz)
{
char *d_cmd;
char buf[1024];
@@ -204,7 +204,7 @@ void send_failure_message(const char *url, const char *mime_type,
* only handles ISO-LATIN-1. The FLTK2 version (utf-8) could use it in the
* future.
*/
-char *datauri_get_mime(char *url)
+static char *datauri_get_mime(char *url)
{
char buf[256];
char *mime_type = NULL, *p;
@@ -239,7 +239,7 @@ char *datauri_get_mime(char *url)
/*
* Return a decoded data string.
*/
-unsigned char *datauri_get_data(char *url, size_t *p_sz)
+static unsigned char *datauri_get_data(char *url, size_t *p_sz)
{
char *p;
int is_base64 = 0;