changeset 6735:b0913ab92893

[gaim-migrate @ 7267] This is some compile warning cleanup stuff. I tried compiling with CFLAGS="-ansi -ggdb -pedantic -Wall" It's fun. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 04 Sep 2003 03:50:22 +0000
parents bf77a7db61c2
children e411a7d6378c
files plugins/notify.c plugins/perl/common/BuddyList_Chat.xs plugins/perl/common/Gaim.xs plugins/spellchk.c plugins/tcl/tcl.c plugins/tcl/tcl_signals.c src/blist.h src/protocols/yahoo/.cvsignore src/prpl.h src/sslconn.c
diffstat 10 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/notify.c	Thu Sep 04 02:17:23 2003 +0000
+++ b/plugins/notify.c	Thu Sep 04 03:50:22 2003 +0000
@@ -646,14 +646,14 @@
 						urgent_add(c);
 				}
 			} else {
-				//don't simply call unnotify(), because that will kill the msg counter
+				/* don't simply call unnotify(), because that will kill the msg counter */
 				urgent_remove(c);
 				quote_remove(gtkwin->window);
 				count_remove(gtkwin->window);
 				string_remove(gtkwin->window);
 			}
 		} else if (opts & STATE_IS_NOTIFIED) {
-			//add/remove the status that was changed
+			/* add/remove the status that was changed */
 			switch(opt_chng) {
 				case OPT_METHOD_COUNT:
 					if (notify_opts & OPT_METHOD_COUNT)
--- a/plugins/perl/common/BuddyList_Chat.xs	Thu Sep 04 02:17:23 2003 +0000
+++ b/plugins/perl/common/BuddyList_Chat.xs	Thu Sep 04 03:50:22 2003 +0000
@@ -27,7 +27,7 @@
 	RETVAL
 
 void
-gaim_chat_set_setting(chat, key, value)
+gaim_blist_chat_set_setting(chat, key, value)
 	Gaim::BuddyList::Chat chat
 	const char *key
 	const char *value
--- a/plugins/perl/common/Gaim.xs	Thu Sep 04 02:17:23 2003 +0000
+++ b/plugins/perl/common/Gaim.xs	Thu Sep 04 03:50:22 2003 +0000
@@ -78,8 +78,6 @@
 
 void
 deinit()
-PREINIT:
-	GList *l;
 CODE:
 	gaim_perl_timeout_clear();
 
--- a/plugins/spellchk.c	Thu Sep 04 02:17:23 2003 +0000
+++ b/plugins/spellchk.c	Thu Sep 04 03:50:22 2003 +0000
@@ -11,6 +11,12 @@
 #include "gtkplugin.h"
 #include "gtkutils.h"
 
+#include <stdio.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
 #define SPELLCHECK_PLUGIN_ID "gtk-spellcheck"
 
 enum {
--- a/plugins/tcl/tcl.c	Thu Sep 04 02:17:23 2003 +0000
+++ b/plugins/tcl/tcl.c	Thu Sep 04 03:50:22 2003 +0000
@@ -363,4 +363,4 @@
 	tcl_loader_info.exts = g_list_append(tcl_loader_info.exts, "tcl");
 }
 
-GAIM_INIT_PLUGIN(tcl, tcl_init_plugin, tcl_info);
+GAIM_INIT_PLUGIN(tcl, tcl_init_plugin, tcl_info)
--- a/plugins/tcl/tcl_signals.c	Thu Sep 04 02:17:23 2003 +0000
+++ b/plugins/tcl/tcl_signals.c	Thu Sep 04 03:50:22 2003 +0000
@@ -231,6 +231,9 @@
 				case GAIM_BLIST_GROUP_NODE:
 					g_string_printf(val, "group {%s}", ((GaimGroup *)node)->name);
 					break;
+				case GAIM_BLIST_CONTACT_NODE:
+					/* g_string_printf(val, "contact {%s}", Contact Name? ); */
+					break;
 				case GAIM_BLIST_BUDDY_NODE:
 					g_string_printf(val, "buddy {%s} %lu", ((GaimBuddy *)node)->name,
 							(unsigned long)((GaimBuddy *)node)->account);
--- a/src/blist.h	Thu Sep 04 02:17:23 2003 +0000
+++ b/src/blist.h	Thu Sep 04 03:50:22 2003 +0000
@@ -628,7 +628,7 @@
 void gaim_blist_chat_set_setting(GaimBlistChat *c, const char *key, const char *value);
 
 /**
- * Retrieves data from the XML buddy list set by gaim_chat_set_setting())
+ * Retrieves data from the XML buddy list set by gaim_blist_chat_set_setting())
  *
  * @param c      The chat to retrieve data from
  * @param key    The key to retrieve the data with
--- a/src/protocols/yahoo/.cvsignore	Thu Sep 04 02:17:23 2003 +0000
+++ b/src/protocols/yahoo/.cvsignore	Thu Sep 04 03:50:22 2003 +0000
@@ -2,18 +2,11 @@
 Makefile
 .deps
 .libs
-buddy.lo
-conn.lo
-libyahoo.la
-login.lo
-misc.lo
-outgoing.lo
-rxhandlers.lo
-yay.lo
-yahoo.lo
-md5.lo
-crypt.lo
-libyahoo.def
-libyahoo.lib
-libyahoo.dll
-util.lo
+*.lo
+*.la
+*.dll
+*.def
+*.lib
+.*.swp
+.*.swo
+.todo.*
--- a/src/prpl.h	Thu Sep 04 02:17:23 2003 +0000
+++ b/src/prpl.h	Thu Sep 04 03:50:22 2003 +0000
@@ -91,7 +91,7 @@
  */
 typedef enum
 {
-	GAIM_IM_AUTO_RESP = 0x01,    /**< Auto response.    */
+	GAIM_IM_AUTO_RESP = 0x01    /**< Auto response.    */
 } GaimImFlags;
 
 /**
--- a/src/sslconn.c	Thu Sep 04 02:17:23 2003 +0000
+++ b/src/sslconn.c	Thu Sep 04 03:50:22 2003 +0000
@@ -291,7 +291,7 @@
 
 	return (GaimSslConnection)ssl_data;
 #else
-	g_return_val_if_fail(gaim_ssl_is_supported(), -1);
+	return GINT_TO_POINTER(-1);
 #endif
 }
 
@@ -345,13 +345,13 @@
 void
 gaim_ssl_uninit(void)
 {
+#ifdef HAVE_NSS
 	if (!_nss_initialized)
 		return;
 
-#ifdef HAVE_NSS
 	PR_Cleanup();
-#endif
 
 	_nss_initialized = FALSE;
 	_nss_methods     = NULL;
+#endif
 }