summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IO/IO.c4
-rw-r--r--src/dns.c3
-rw-r--r--src/misc.c2
-rw-r--r--src/misc.h2
4 files changed, 6 insertions, 5 deletions
diff --git a/src/IO/IO.c b/src/IO/IO.c
index db3239a6..8dd3a1ae 100644
--- a/src/IO/IO.c
+++ b/src/IO/IO.c
@@ -330,11 +330,11 @@ static void IO_submit(IOData_t *r_io)
if (r_io->Op == IORead) {
a_IOwatch_add_fd(r_io->FD, DIO_READ,
- IO_fd_read_cb, (void*)(r_io->Key));
+ IO_fd_read_cb, INT2VOIDP(r_io->Key));
} else if (r_io->Op == IOWrite) {
a_IOwatch_add_fd(r_io->FD, DIO_WRITE,
- IO_fd_write_cb, (void*)(r_io->Key));
+ IO_fd_write_cb, INT2VOIDP(r_io->Key));
}
}
diff --git a/src/dns.c b/src/dns.c
index b47658c0..73ada0ad 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -336,7 +336,8 @@ static void Dns_server_req(int channel, const char *hostname)
dns_server[channel].hostname = dStrdup(hostname);
/* Let's set a timeout client to poll the server channel (5 times/sec) */
- a_Timeout_add(0.2,Dns_timeout_client,(void*)(dns_server[channel].channel));
+ a_Timeout_add(0.2,Dns_timeout_client,
+ INT2VOIDP(dns_server[channel].channel));
#ifdef D_DNS_THREADED
/* set the thread attribute to the detached state */
diff --git a/src/misc.c b/src/misc.c
index 75c61f48..7cb0b9ff 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -24,7 +24,7 @@
* Escape characters as %XX sequences.
* Return value: New string.
*/
-char *a_Misc_escape_chars(const char *str, char *esc_set)
+char *a_Misc_escape_chars(const char *str, const char *esc_set)
{
static const char *hex = "0123456789ABCDEF";
char *p = NULL;
diff --git a/src/misc.h b/src/misc.h
index c4d901ab..2659875b 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -9,7 +9,7 @@ extern "C" {
#endif /* __cplusplus */
-char *a_Misc_escape_chars(const char *str, char *esc_set);
+char *a_Misc_escape_chars(const char *str, const char *esc_set);
char *a_Misc_expand_tabs(const char *str);
int a_Misc_get_content_type_from_data(void *Data, size_t Size,const char **PT);
int a_Misc_content_type_check(const char *EntryType, const char *DetectedType);