comparison src/editors.c @ 516:b7e99bfeadc9

Convert the minority of while() to while ().
author zas_
date Thu, 24 Apr 2008 15:49:57 +0000
parents 48c8e49b571c
children 905688aa2317
comparison
equal deleted inserted replaced
515:adc45cd3f08b 516:b7e99bfeadc9
286 286
287 if (!work) 287 if (!work)
288 p = fd->path; 288 p = fd->path;
289 else 289 else
290 { 290 {
291 while(work) 291 while (work)
292 { 292 {
293 GList *work2; 293 GList *work2;
294 gchar *ext = work->data; 294 gchar *ext = work->data;
295 work = work->next; 295 work = work->next;
296 296
300 p = fd->path; 300 p = fd->path;
301 break; 301 break;
302 } 302 }
303 303
304 work2 = fd->sidecar_files; 304 work2 = fd->sidecar_files;
305 while(work2) 305 while (work2)
306 { 306 {
307 FileData *sfd = work2->data; 307 FileData *sfd = work2->data;
308 work2 = work2->next; 308 work2 = work2->next;
309 309
310 if (strcasecmp(ext, sfd->extension) == 0) 310 if (strcasecmp(ext, sfd->extension) == 0)