]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Fix warnings
authorTingPing <redacted>
Thu, 19 Mar 2015 20:06:49 +0000 (16:06 -0400)
committerTingPing <redacted>
Thu, 19 Mar 2015 20:06:49 +0000 (16:06 -0400)
src/common/plugin-identd.c
src/common/util.c

index c8936d8b1456e77aeb165d293fe963fc75d75e8e..ce1bd1e62db229a711d022cfd118641c498a14a5 100644 (file)
@@ -27,12 +27,12 @@ static hexchat_plugin *ph;
 static GSocketService *service;
 static GHashTable *responses;
 
-struct ident_info
+typedef struct ident_info
 {
        GSocketConnection *conn;
        gchar *username;
        gchar read_buf[16];
-} typedef ident_info;
+} ident_info;
 
 static int
 identd_cleanup_response_cb (gpointer userdata)
index d650c8208e74cbcc9d373cb6ad94411255531d82..be3dcac23e4338d1264d5c2617c72e0feef873ce 100644 (file)
@@ -246,11 +246,11 @@ expand_homedir (char *file)
 
        if (file[0] == '~')
        {
+               char *slash_pos;
+
                if (file[1] == '\0' || file[1] == '/')
                        return g_strconcat (g_get_home_dir (), &file[1], NULL);
 
-               char *slash_pos;
-
                user = g_strdup(file);
 
                slash_pos = strchr(user, '/');