summaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-17 15:18:35 +0100
committerjcid <devnull@localhost>2007-11-17 15:18:35 +0100
commit9fce735bdcebd04957360f4b673b1dfe4645f0af (patch)
tree4d4321f2f1ba3aa089e61b48bf3812415bc76e1a /dpi
parentdfd741a2a60c8013cf96666bb9f24408b863790e (diff)
Added the "static" qualifier where missing.
Diffstat (limited to 'dpi')
-rw-r--r--dpi/cookies.c16
-rw-r--r--dpi/datauri.c14
-rw-r--r--dpi/downloads.cc10
-rw-r--r--dpi/file.c2
4 files changed, 21 insertions, 21 deletions
diff --git a/dpi/cookies.c b/dpi/cookies.c
index 0a3f0652..fd91e0cc 100644
--- a/dpi/cookies.c
+++ b/dpi/cookies.c
@@ -159,7 +159,7 @@ static int Cookies_cmp(const void *a, const void *b);
/*
* Compare function for searching a cookie node
*/
-int Cookie_node_cmp(const void *v1, const void *v2)
+static int Cookie_node_cmp(const void *v1, const void *v2)
{
const CookieNode *n1 = v1, *n2 = v2;
@@ -169,7 +169,7 @@ int Cookie_node_cmp(const void *v1, const void *v2)
/*
* Compare function for searching a cookie node by domain
*/
-int Cookie_node_by_domain_cmp(const void *v1, const void *v2)
+static int Cookie_node_by_domain_cmp(const void *v1, const void *v2)
{
const CookieNode *node = v1;
const char *domain = v2;
@@ -223,7 +223,7 @@ static void Cookies_free_cookie(CookieData_t *cookie)
* Initialize the cookies module
* (The 'disabled' variable is writable only within Cookies_init)
*/
-void Cookies_init()
+static void Cookies_init()
{
CookieData_t *cookie;
char *filename;
@@ -417,7 +417,7 @@ void Cookies_init()
/*
* Flush cookies to disk and free all the memory allocated.
*/
-void Cookies_save_and_free()
+static void Cookies_save_and_free()
{
int i, fd;
CookieNode *node;
@@ -1045,8 +1045,8 @@ static char *Cookies_strip_path(const char *path)
/*
* Set the value corresponding to the cookie string
*/
-void Cookies_set(char *cookie_string, char *url_host,
- char *url_path, int url_port)
+static void Cookies_set(char *cookie_string, char *url_host,
+ char *url_path, int url_port)
{
CookieControlAction action;
CookieData_t *cookie;
@@ -1113,8 +1113,8 @@ static bool_t Cookies_match(CookieData_t *cookie, int port,
/*
* Return a string that contains all relevant cookies as headers.
*/
-char *Cookies_get(char *url_host, char *url_path,
- char *url_scheme, int url_port)
+static char *Cookies_get(char *url_host, char *url_path,
+ char *url_scheme, int url_port)
{
char *domain_str, *q, *str, *path;
CookieData_t *cookie;
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;
diff --git a/dpi/downloads.cc b/dpi/downloads.cc
index afadee2b..b9c89941 100644
--- a/dpi/downloads.cc
+++ b/dpi/downloads.cc
@@ -654,7 +654,7 @@ void DLItem::child_finished(int status)
/*
* Convert seconds into human readable [hour]:[min]:[sec] string.
*/
-void secs2timestr(int et, char *str)
+static void secs2timestr(int et, char *str)
{
int eh, em, es;
@@ -743,13 +743,13 @@ void DLItem::update()
/*! SIGCHLD handler
*/
-void raw_sigchld(int)
+static void raw_sigchld(int)
{
caught_sigchld = 1;
}
/*! Establish SIGCHLD handler */
-void est_sigchld(void)
+static void est_sigchld(void)
{
struct sigaction sigact;
sigset_t set;
@@ -767,7 +767,7 @@ void est_sigchld(void)
/*
* Timeout function to check wget's exit status.
*/
-void cleanup_cb(void *data)
+static void cleanup_cb(void *data)
{
DLItemList *list = (DLItemList *)data;
@@ -793,7 +793,7 @@ void cleanup_cb(void *data)
* Timeout function to update the widget indicators,
* also remove widgets marked "done".
*/
-void update_cb(void *data)
+static void update_cb(void *data)
{
static int cb_used = 0;
diff --git a/dpi/file.c b/dpi/file.c
index 04cdf362..edbbc9ec 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -876,7 +876,7 @@ static void *File_serve_clients(void *client)
* Check a fd for activity, with a max timeout.
* return value: 0 if timeout, 1 if input available, -1 if error.
*/
-int File_check_fd(int filedes, unsigned int seconds)
+static int File_check_fd(int filedes, unsigned int seconds)
{
int st;
fd_set set;