summaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
Diffstat (limited to 'dpi')
-rw-r--r--dpi/cookies.c6
-rw-r--r--dpi/datauri.c3
-rw-r--r--dpi/file.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/dpi/cookies.c b/dpi/cookies.c
index 420bd69d..f629768e 100644
--- a/dpi/cookies.c
+++ b/dpi/cookies.c
@@ -3,7 +3,7 @@
* Cookies server.
*
* Copyright 2001 Lars Clausen <lrclause@cs.uiuc.edu>
- * Jörgen Viksell <jorgen.viksell@telia.com>
+ * Jörgen Viksell <jorgen.viksell@telia.com>
* Copyright 2002-2007 Jorge Arellano Cid <jcid@dillo.org>
*
* This program is free software; you can redistribute it and/or modify
@@ -332,7 +332,7 @@ static void Cookies_load_cookies(FILE *stream)
* Initialize the cookies module
* (The 'disabled' variable is writeable only within Cookies_init)
*/
-static void Cookies_init()
+static void Cookies_init(void)
{
char *filename;
#ifndef HAVE_LOCKF
@@ -387,7 +387,7 @@ static void Cookies_init()
/*
* Flush cookies to disk and free all the memory allocated.
*/
-static void Cookies_save_and_free()
+static void Cookies_save_and_free(void)
{
int i, fd, saved = 0;
DomainNode *node;
diff --git a/dpi/datauri.c b/dpi/datauri.c
index 0e3560ec..f968baa2 100644
--- a/dpi/datauri.c
+++ b/dpi/datauri.c
@@ -20,6 +20,7 @@
#include "../dpip/dpip.h"
#include "dpiutil.h"
+#include "../src/misc.h"
/*
* Debugging macros
@@ -44,7 +45,7 @@ static void b64strip_illegal_chars(unsigned char* str)
MSG("len=%d{%s}\n", strlen((char*)str), str);
for (p = s; (*p = *s); ++s) {
- if (isascii(*p) && (isalnum(*p) || strchr("+/=", *p)))
+ if (d_isascii(*p) && (isalnum(*p) || strchr("+/=", *p)))
++p;
}
diff --git a/dpi/file.c b/dpi/file.c
index df0b4933..ecee90ea 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -1000,7 +1000,7 @@ static void File_serve_client(void *data, int f_write)
/*
* Serve the client queue.
*/
-static void File_serve_clients()
+static void File_serve_clients(void)
{
int i, f_read, f_write;
ClientInfo *client;