# HG changeset patch # User Herman Bloggs # Date 1034797459 0 # Node ID d7e83b4db191422722f9ba5280b511d83b9e5a68 # Parent 764d6f1848b2bbf4cccd9e3ffe363a9737623675 [gaim-migrate @ 3849] Warning fixes committer: Tailor Script diff -r 764d6f1848b2 -r d7e83b4db191 src/aim.c --- a/src/aim.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/aim.c Wed Oct 16 19:44:19 2002 +0000 @@ -28,9 +28,7 @@ #endif #endif /* GAIM_PLUGINS */ #include -#ifdef _WIN32 -#include -#else +#ifndef _WIN32 #include #include #include @@ -38,7 +36,7 @@ #include #include #include -#endif /* _WIN32 */ +#endif /* !_WIN32 */ #include #include #include @@ -50,19 +48,21 @@ #include #include "prpl.h" #include "gaim.h" -#include "pixmaps/logo.xpm" #if HAVE_SIGNAL_H #include #endif #include "locale.h" #include "gtkspell.h" #include + #ifdef _WIN32 #include "win32dep.h" #endif +#ifndef _WIN32 static gchar *aspell_cmd[] = { "aspell", "--sug-mode=fast","-a", NULL }; static gchar *ispell_cmd[] = { "ispell", "-a", NULL }; +#endif static GtkWidget *name; static GtkWidget *pass; @@ -165,7 +165,7 @@ save_prefs(); serv_login(u); } - +#if 0 static void dologin_all(GtkWidget *widget, GtkWidget *w) { struct aim_user *u; @@ -178,7 +178,7 @@ users = users->next; } } - +#endif static void doenter(GtkWidget *widget, GtkWidget *w) { if (widget == name) { @@ -507,7 +507,7 @@ debug_printf("%s - %s\n", domain, msg); g_log_default_handler(domain, flags, msg, user_data); } -#endif +#endif /* _WIN32 */ /* FUCKING GET ME A TOWEL! */ #ifdef _WIN32 diff -r 764d6f1848b2 -r d7e83b4db191 src/buddy.c --- a/src/buddy.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/buddy.c Wed Oct 16 19:44:19 2002 +0000 @@ -64,9 +64,11 @@ #include "pixmaps/add_small.xpm" #include "pixmaps/import_small.xpm" /*#include "pixmaps/export_small.xpm"*/ +#if 0 #if defined(GAIM_PLUGINS) || defined(USE_PERL) #include "pixmaps/plugins_small.xpm" #endif +#endif #include "pixmaps/prefs_small.xpm" #include "pixmaps/search_small.xpm" #include "pixmaps/close_small.xpm" @@ -2572,9 +2574,6 @@ GtkWidget *sw; GtkWidget *menu; -#ifdef USE_PERL - GtkWidget *perlmenu; -#endif #ifdef NO_MULTI GtkWidget *setmenu; GtkWidget *findmenu; diff -r 764d6f1848b2 -r d7e83b4db191 src/buddy_chat.c --- a/src/buddy_chat.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/buddy_chat.c Wed Oct 16 19:44:19 2002 +0000 @@ -36,9 +36,16 @@ #include "convo.h" #include "prpl.h" -#include "pixmaps/tb_forward.xpm" +/*#include "pixmaps/tb_forward.xpm"*/ #include "pixmaps/join.xpm" -#include "pixmaps/close.xpm" +/*#include "pixmaps/close.xpm"*/ +#include "pixmaps/cancel.xpm" +#include "pixmaps/tmp_send.xpm" +#include "pixmaps/gnome_add.xpm" +#include "pixmaps/gnome_remove.xpm" +#include "pixmaps/block.xpm" +#include "pixmaps/warn.xpm" +#include "pixmaps/tb_search.xpm" GtkWidget *joinchat; static struct gaim_connection *joinchatgc; @@ -1122,12 +1129,12 @@ GtkWidget *cont; GtkWidget *text; GtkWidget *list; - GtkWidget *close; + /*GtkWidget *close;*/ GtkWidget *chatentry; GtkWidget *lbox; GtkWidget *bbox; GtkWidget *bbox2; - GtkWidget *button, *im; + GtkWidget *button; GtkWidget *sw; GtkWidget *sw2; GtkWidget *vbox; @@ -1138,7 +1145,7 @@ char buf[BUF_LONG]; - int dispstyle = set_dispstyle(1); + /*int dispstyle = set_dispstyle(1);*/ if (chat_options & OPT_CHAT_ONE_WINDOW) { if (!all_chats) { diff -r 764d6f1848b2 -r d7e83b4db191 src/conversation.c --- a/src/conversation.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/conversation.c Wed Oct 16 19:44:19 2002 +0000 @@ -47,10 +47,12 @@ #include "prpl.h" #ifdef _WIN32 +#include /* fog getpid() */ +#include #include "win32dep.h" #endif -#include "pixmaps/save_small.xpm" +/*#include "pixmaps/save_small.xpm"*/ #include "pixmaps/luke03.xpm" #include "pixmaps/oneeye.xpm" @@ -1339,15 +1341,8 @@ if (err < 0) { if (err == -E2BIG) do_error_dialog(_("Unable to send message. The message is too large"), NULL, GAIM_ERROR); -#ifndef _WIN32 else if (err == -ENOTCONN) debug_printf("Not yet connected\n"); -#else - else if (err == SOCKET_ERROR) { - if (WSAENOTCONN == WSAGetLastError()) - debug_printf("Not yet connected\n"); - } -#endif else do_error_dialog(_("Unable to send message"), NULL, GAIM_ERROR); } else { @@ -2409,7 +2404,7 @@ void update_convo_add_button(struct conversation *c) { - int dispstyle = set_dispstyle(0); + /*int dispstyle = set_dispstyle(0);*/ GtkWidget *parent = c->add->parent; gboolean rebuild = FALSE; @@ -2767,7 +2762,7 @@ GtkWidget *info; GtkWidget *warn; GtkWidget *block; - GtkWidget *close; + /*GtkWidget *close;*/ GtkWidget *entry; GtkWidget *bbox; GtkWidget *vbox; diff -r 764d6f1848b2 -r d7e83b4db191 src/convo.h --- a/src/convo.h Wed Oct 16 19:40:00 2002 +0000 +++ b/src/convo.h Wed Oct 16 19:44:19 2002 +0000 @@ -25,6 +25,7 @@ #include #include "gaim.h" +#if 0 #include "pixmaps/tmp_send.xpm" #include "pixmaps/gnome_remove.xpm" #include "pixmaps/gnome_add.xpm" @@ -32,6 +33,7 @@ #include "pixmaps/warn.xpm" #include "pixmaps/tb_search.xpm" #include "pixmaps/block.xpm" +#endif extern GtkWidget *convo_notebook; extern GtkWidget *chat_notebook; diff -r 764d6f1848b2 -r d7e83b4db191 src/core.c --- a/src/core.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/core.c Wed Oct 16 19:44:19 2002 +0000 @@ -51,7 +51,9 @@ #include "win32dep.h" #endif +#ifndef _WIN32 static gint UI_fd = -1; +#endif int gaim_session = 0; GSList *uis = NULL; diff -r 764d6f1848b2 -r d7e83b4db191 src/dialogs.c --- a/src/dialogs.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/dialogs.c Wed Oct 16 19:44:19 2002 +0000 @@ -3561,9 +3561,9 @@ GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(dummy)); GValue val = { 0, }; - if (! gtk_tree_selection_get_selected (sel, &ls, &iter)) + if (! gtk_tree_selection_get_selected (sel, (GtkTreeModel**)&ls, &iter)) return; - gtk_tree_model_get_value (ls, &iter, 1, &val); + gtk_tree_model_get_value (GTK_TREE_MODEL(ls), &iter, 1, &val); amt = g_value_get_pointer (&val); gtk_entry_set_text(GTK_ENTRY(ca->entry), amt->name); gtk_editable_insert_text(GTK_EDITABLE(ca->text), amt->message, @@ -3884,7 +3884,7 @@ static void do_save_log(GtkWidget *w, GtkWidget *filesel) { - char *file; + const char *file; char path[PATHSIZE]; char buf[BUF_LONG]; char error[BUF_LEN]; @@ -3898,7 +3898,7 @@ g_snprintf(filename, PATHSIZE, "%s" G_DIR_SEPARATOR_S "logs" G_DIR_SEPARATOR_S "%s%s", tmp, name ? normalize(name) : "system", name ? ".log" : ""); - file = gtk_file_selection_get_filename(GTK_FILE_SELECTION(filesel)); + file = (const char*)gtk_file_selection_get_filename(GTK_FILE_SELECTION(filesel)); strncpy(path, file, PATHSIZE - 1); if (file_is_dir(path, filesel)) return; @@ -4113,7 +4113,7 @@ void chat_show_log(GtkWidget *w, gpointer data) { - char *name = g_strdup_printf("%s.chat", data); + char *name = g_strdup_printf("%s.chat", (char*)data); show_log(name); g_free(name); } diff -r 764d6f1848b2 -r d7e83b4db191 src/ft.c --- a/src/ft.c Wed Oct 16 19:40:00 2002 +0000 +++ b/src/ft.c Wed Oct 16 19:44:19 2002 +0000 @@ -35,6 +35,10 @@ #include "proxy.h" #include "prpl.h" +#ifdef _WIN32 +#include "win32dep.h" +#endif + /* Completely describes a file transfer. Opaque to callers. */ struct file_transfer { enum { FILE_TRANSFER_TYPE_SEND, FILE_TRANSFER_TYPE_RECEIVE } type; @@ -461,11 +465,9 @@ /* Two functions, one recursive, just to make a directory. Yuck. */ static int ft_mkdir_help(char *dir) { int ret; -#ifndef _WIN32 + ret = mkdir(dir, 0775); -#else - ret = _mkdir(dir); -#endif + if (ret) { char *index = strrchr(dir, G_DIR_SEPARATOR); if (!index) @@ -474,11 +476,7 @@ ret = ft_mkdir_help(dir); *index = G_DIR_SEPARATOR; if (!ret) -#ifndef _WIN32 ret = mkdir(dir, 0775); -#else - ret = _mkdir(dir); -#endif } return ret;