Couple of minor const correctness fixes
This commit is contained in:
parent
10e429b85d
commit
c698e13c0d
|
@ -426,14 +426,14 @@ plugin_auto_load_cb (char *filename)
|
|||
}
|
||||
}
|
||||
|
||||
static char *
|
||||
static const char *
|
||||
plugin_get_libdir (void)
|
||||
{
|
||||
const char *libdir;
|
||||
|
||||
libdir = g_getenv ("HEXCHAT_LIBDIR");
|
||||
if (libdir && *libdir)
|
||||
return (char*)libdir;
|
||||
return libdir;
|
||||
else
|
||||
return HEXCHATLIBDIR;
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ plugin_get_libdir (void)
|
|||
void
|
||||
plugin_auto_load (session *sess)
|
||||
{
|
||||
char *lib_dir;
|
||||
const char *lib_dir;
|
||||
char *sub_dir;
|
||||
ps = sess;
|
||||
|
||||
|
|
|
@ -634,7 +634,7 @@ break_while:
|
|||
}
|
||||
|
||||
void
|
||||
for_files (char *dirname, char *mask, void callback (char *file))
|
||||
for_files (const char *dirname, const char *mask, void callback (char *file))
|
||||
{
|
||||
GDir *dir;
|
||||
const gchar *entry_name;
|
||||
|
|
|
@ -41,7 +41,7 @@ char *expand_homedir (char *file);
|
|||
void path_part (char *file, char *path, int pathlen);
|
||||
int match (const char *mask, const char *string);
|
||||
char *file_part (char *file);
|
||||
void for_files (char *dirname, char *mask, void callback (char *file));
|
||||
void for_files (const char *dirname, const char *mask, void callback (char *file));
|
||||
int rfc_casecmp (const char *, const char *);
|
||||
int rfc_ncasecmp (char *, char *, int);
|
||||
int buf_get_line (char *, char **, int *, int len);
|
||||
|
|
Loading…
Reference in New Issue