Eliminate some more warnings

This commit is contained in:
Berke Viktor
2012-10-30 21:25:58 +01:00
parent 284dbfbe3d
commit cb0f6c8c91
11 changed files with 12 additions and 12 deletions

View File

@@ -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 */

View File

@@ -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);

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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);

View File

@@ -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 {

View File

@@ -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