diff src/collect.c @ 516:b7e99bfeadc9

Convert the minority of while() to while ().
author zas_
date Thu, 24 Apr 2008 15:49:57 +0000
parents 985fdfebd89e
children 905688aa2317
line wrap: on
line diff
--- a/src/collect.c	Thu Apr 24 15:44:43 2008 +0000
+++ b/src/collect.c	Thu Apr 24 15:49:57 2008 +0000
@@ -114,7 +114,7 @@
 {
 	GList *work;
 	work = list;
-	while(work)
+	while (work)
 		{
 		collection_info_free((CollectInfo *)work->data);
 		work = work->next;
@@ -215,7 +215,7 @@
 {
 	GList *work = list;
 
-	while(work)
+	while (work)
 		{
 		CollectInfo *ci = work->data;
 		if (strcmp(ci->fd->path, path) == 0) return ci;
@@ -230,7 +230,7 @@
 {
 	GList *work = list;
 
-	while(work)
+	while (work)
 		{
 		CollectInfo *ci = work->data;
 		if (strcmp(ci->fd->path, path) == 0) return work;
@@ -245,7 +245,7 @@
 	gint c = 0;
 	GList *work = list;
 
-	while(work)
+	while (work)
 		{
 		CollectInfo *ci = work->data;
 		if (strcmp(ci->fd->path, path) == 0) return c;
@@ -436,7 +436,7 @@
 		gint b, e;
 
 		b = 0;
-		while(data[b] != '\0' && data[b] != '\n' ) b++;
+		while (data[b] != '\0' && data[b] != '\n' ) b++;
 		b++;
 		e = b;
 
@@ -481,7 +481,7 @@
 	temp = NULL;
 	temp = g_list_prepend(temp, g_strdup_printf("COLLECTION:%d\n", n));
 	work = list;
-	while(work)
+	while (work)
 		{
 		n = g_list_index(cd->list, work->data);
 		if (n >= 0)
@@ -493,7 +493,7 @@
 
 	total = 0;
 	work = temp;
-	while(work)
+	while (work)
 		{
 		total += strlen((gchar *)work->data);
 		work = work->next;
@@ -504,7 +504,7 @@
 	ptr = uri_text;
 
 	work = g_list_last(temp);
-	while(work)
+	while (work)
 		{
 		gchar *text = work->data;
 
@@ -718,7 +718,7 @@
 		}
 
 	work = list;
-	while(work)
+	while (work)
 		{
 		cd->list = collection_list_remove(cd->list, work->data);
 		work = work->next;
@@ -762,12 +762,12 @@
 	GList *work;
 
 	work = collection_list;
-	while(work)
+	while (work)
 		{
 		CollectionData *cd = work->data;
 		work = work->next;
 
-		while(collection_remove(cd, fd));
+		while (collection_remove(cd, fd));
 		}
 #if 0
 	/* Do we really need to do this? removed files are
@@ -782,12 +782,12 @@
 	GList *work;
 
 	work = collection_list;
-	while(work)
+	while (work)
 		{
 		CollectionData *cd = work->data;
 		work = work->next;
 
-		while(collection_rename(cd, fd));
+		while (collection_rename(cd, fd));
 		}
 
 	collect_manager_moved(fd);