Mercurial > geeqie
diff src/thumb.c @ 855:0c3f6ef17d18
Tidy up.
author | zas_ |
---|---|
date | Wed, 25 Jun 2008 20:53:52 +0000 |
parents | 06929cbcd796 |
children | f40509d56fe3 |
line wrap: on
line diff
--- a/src/thumb.c Wed Jun 25 20:22:02 2008 +0000 +++ b/src/thumb.c Wed Jun 25 20:53:52 2008 +0000 @@ -592,10 +592,10 @@ gint width, height, depth; file = fopen(filename, "rt"); - if(!file) return NULL; + if (!file) return NULL; fgets(buffer, XV_BUFFER, file); - if(strncmp(buffer, "P7 332", 6) != 0) + if (strncmp(buffer, "P7 332", 6) != 0) { fclose(file); return NULL; @@ -603,7 +603,7 @@ while (fgets(buffer, XV_BUFFER, file) && buffer[0] == '#') /* do_nothing() */; - if(sscanf(buffer, "%d %d %d", &width, &height, &depth) != 3) + if (sscanf(buffer, "%d %d %d", &width, &height, &depth) != 3) { fclose(file); return NULL; @@ -665,7 +665,7 @@ packed_data = load_xv_thumbnail(thumb_name, &width, &height); g_free(thumb_name); - if(packed_data) + if (packed_data) { guchar *rgb_data; GdkPixbuf *pixbuf;