diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-28 16:35:51 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-08-07 16:50:43 +0200 |
commit | 4d51150ca0aae979718ac10030df85421b763cd1 (patch) | |
tree | a824a83feefca6695fbe1072b3d724290b07af1f /dpi | |
parent | a9950b3aca2a264e0ee1da1e2a29d3be11e6606c (diff) |
Make Dillo C99 standard compliant
Reviewed-by: dogma
Diffstat (limited to 'dpi')
-rw-r--r-- | dpi/cookies.c | 6 | ||||
-rw-r--r-- | dpi/datauri.c | 3 | ||||
-rw-r--r-- | dpi/file.c | 2 |
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; } @@ -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; |