Fix warnings
This commit is contained in:
parent
4e338a2b70
commit
b4906f3d23
@ -27,12 +27,12 @@ static hexchat_plugin *ph;
|
|||||||
static GSocketService *service;
|
static GSocketService *service;
|
||||||
static GHashTable *responses;
|
static GHashTable *responses;
|
||||||
|
|
||||||
struct ident_info
|
typedef struct ident_info
|
||||||
{
|
{
|
||||||
GSocketConnection *conn;
|
GSocketConnection *conn;
|
||||||
gchar *username;
|
gchar *username;
|
||||||
gchar read_buf[16];
|
gchar read_buf[16];
|
||||||
} typedef ident_info;
|
} ident_info;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
identd_cleanup_response_cb (gpointer userdata)
|
identd_cleanup_response_cb (gpointer userdata)
|
||||||
|
@ -246,11 +246,11 @@ expand_homedir (char *file)
|
|||||||
|
|
||||||
if (file[0] == '~')
|
if (file[0] == '~')
|
||||||
{
|
{
|
||||||
|
char *slash_pos;
|
||||||
|
|
||||||
if (file[1] == '\0' || file[1] == '/')
|
if (file[1] == '\0' || file[1] == '/')
|
||||||
return g_strconcat (g_get_home_dir (), &file[1], NULL);
|
return g_strconcat (g_get_home_dir (), &file[1], NULL);
|
||||||
|
|
||||||
char *slash_pos;
|
|
||||||
|
|
||||||
user = g_strdup(file);
|
user = g_strdup(file);
|
||||||
|
|
||||||
slash_pos = strchr(user, '/');
|
slash_pos = strchr(user, '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user