[evolution-patches] Cleanups for evolution/tools



And yet more...

Cheers
Kjartan

Index: evolution-launch-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/tools/evolution-launch-composer.c,v
retrieving revision 1.3
diff -u -p -r1.3 evolution-launch-composer.c
--- evolution-launch-composer.c	17 Jun 2005 15:20:32 -0000	1.3
+++ evolution-launch-composer.c	10 Dec 2005 21:29:42 -0000
@@ -162,7 +162,6 @@ do_send (GNOME_Evolution_Composer compos
 
 	while (attachments) {
 		attachment_t *attachment = attachments->data;
-		GList *temp;
 
 		attach_data = GNOME_Evolution_Composer_AttachmentData__alloc();
 		attach_data->_maximum = attach_data->_length = attachment->size;
@@ -187,9 +186,7 @@ do_send (GNOME_Evolution_Composer compos
 
 		free_attachment (attachment);
 
-		temp = attachments;
-		attachments = g_list_remove_link (attachments, attachments);
-		g_list_free_1 (temp);
+		attachments = g_list_delete_link (attachments, attachments);
 	}
 
 	to_list = GNOME_Evolution_Composer_RecipientList__alloc ();
Index: killev.c
===================================================================
RCS file: /cvs/gnome/evolution/tools/killev.c,v
retrieving revision 1.8
diff -u -p -r1.8 killev.c
--- killev.c	30 Apr 2004 06:23:28 -0000	1.8
+++ killev.c	10 Dec 2005 21:29:42 -0000
@@ -39,8 +39,8 @@ typedef struct {
 	GPtrArray *names;
 } KillevComponent;
 
-GSList *languages;
-GHashTable *components;
+static GSList *languages;
+static GHashTable *components;
 
 static gboolean
 kill_process (const char *proc_name, KillevComponent *comp)
@@ -80,7 +80,7 @@ kill_process (const char *proc_name, Kil
 	system (command);
 	g_free (command);
 	return TRUE;
-};
+}
 
 static const char *patterns[] = {
 	"%s", "%.16s", "lt-%s", "lt-%.13s"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]