diff options
author | jcid <devnull@localhost> | 2007-11-17 15:18:35 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-17 15:18:35 +0100 |
commit | 9fce735bdcebd04957360f4b673b1dfe4645f0af (patch) | |
tree | 4d4321f2f1ba3aa089e61b48bf3812415bc76e1a /dpi/datauri.c | |
parent | dfd741a2a60c8013cf96666bb9f24408b863790e (diff) |
Added the "static" qualifier where missing.
Diffstat (limited to 'dpi/datauri.c')
-rw-r--r-- | dpi/datauri.c | 14 |
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; |