summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cfgfiles.c2
-rw-r--r--src/common/cfgfiles.h2
-rw-r--r--src/common/hexchat.c2
-rw-r--r--src/common/server.c2
-rw-r--r--src/common/ssl.c2
-rw-r--r--src/common/url.c2
-rw-r--r--src/common/url.h2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index a8865cf9..7e2cd653 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -166,7 +166,7 @@ list_delentry (GSList ** list, char *name)
 }
 
 char *
-cfg_get_str (char *cfg, char *var, char *dest, int dest_len)
+cfg_get_str (char *cfg, const char *var, char *dest, int dest_len)
 {
 	char buffer[128];	/* should be plenty for a variable name */
 
diff --git a/src/common/cfgfiles.h b/src/common/cfgfiles.h
index d0062304..d32dbb67 100644
--- a/src/common/cfgfiles.h
+++ b/src/common/cfgfiles.h
@@ -8,7 +8,7 @@
 extern char *xdir_fs;
 extern char *xdir_utf;
 
-char *cfg_get_str (char *cfg, char *var, char *dest, int dest_len);
+char *cfg_get_str (char *cfg, const char *var, char *dest, int dest_len);
 int cfg_get_bool (char *var);
 int cfg_get_int_with_result (char *cfg, char *var, int *result);
 int cfg_get_int (char *cfg, char *var);
diff --git a/src/common/hexchat.c b/src/common/hexchat.c
index 739ae0c3..d8207fb0 100644
--- a/src/common/hexchat.c
+++ b/src/common/hexchat.c
@@ -1147,7 +1147,7 @@ main (int argc, char *argv[])
 			if (hextray_mode ())
 			{
 				/* FindWindow() doesn't support wildcards so we check all the open windows */
-				EnumWindows (enum_windows_impl, NULL);
+				EnumWindows (enum_windows_impl, (LPARAM) NULL);
 				return 0;
 			}
 			else
diff --git a/src/common/server.c b/src/common/server.c
index c3abb6ad..29ffbd3a 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -1053,7 +1053,7 @@ server_read_child (GIOChannel *source, GIOCondition condition, server *serv)
 static int
 server_cleanup (server * serv)
 {
-	fe_set_lag (serv, 0.0);
+	fe_set_lag (serv, 0);
 
 	if (serv->iotag)
 	{
diff --git a/src/common/ssl.c b/src/common/ssl.c
index 1ee42a08..830b3d83 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -206,7 +206,7 @@ _SSL_get_cert_info (struct cert_info *cert_info, SSL * ssl)
 struct chiper_info *
 _SSL_get_cipher_info (SSL * ssl)
 {
-	SSL_CIPHER *c;
+	const SSL_CIPHER *c;
 
 
 	c = SSL_get_current_cipher (ssl);
diff --git a/src/common/url.c b/src/common/url.c
index 618a4a71..0a4c3609 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -178,7 +178,7 @@ url_add (char *urltext, int len)
    2.4.4 release. */
 
 int
-url_check_word (char *word, int len)
+url_check_word (const char *word, int len)
 {
 #define D(x) (x), ((sizeof (x)) - 1)
 	static const struct {
diff --git a/src/common/url.h b/src/common/url.h
index dc5a65f8..9a815fe1 100644
--- a/src/common/url.h
+++ b/src/common/url.h
@@ -14,7 +14,7 @@ extern void *url_tree;
 
 void url_clear (void);
 void url_save_tree (const char *fname, const char *mode, gboolean fullpath);
-int url_check_word (char *word, int len);
+int url_check_word (const char *word, int len);
 void url_check_line (char *buf, int len);
 
 #endif