summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-26 23:31:45 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-26 23:31:45 +0100
commit26db3fd707e28ab03b69cf9acc5ecd6cf7edaf8a (patch)
treec79b06f464c48dab6c6898056263cb5b506d6112
parent0adc2138606c41cbbdde66c2548b024c1038493c (diff)
downloadevas_generic_loaders-26db3fd707e28ab03b69cf9acc5ecd6cf7edaf8a.tar.gz
xcf: fix indent for some code parts to match surroundings
The file uses 3 spaces for initial indent while some code blocks have been added with two spaces. Purely cosmetic but found while playing around with smatch.
-rw-r--r--src/bin/xcf/main.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/bin/xcf/main.c b/src/bin/xcf/main.c
index 1cef05b..373823b 100644
--- a/src/bin/xcf/main.c
+++ b/src/bin/xcf/main.c
@@ -665,11 +665,11 @@ xcf_load_image(void)
/* restore the saved position so we'll be ready to
* read the next offset. */
xcf_seek_pos (saved_pos);
- }
- /* If we were a Gimp we would now load the user-defined channels here ... */
- /* Flat-o-rama now :) */
- flatten_image();
- return;
+ }
+ /* If we were a Gimp we would now load the user-defined channels here ... */
+ /* Flat-o-rama now :) */
+ flatten_image();
+ return;
error:
if (num_successful_elements == 0) goto hard_error;
fprintf(stderr, "XCF: This file is corrupt! I have loaded as much\nof it as I can, but it is incomplete.\n");
@@ -758,18 +758,18 @@ xcf_load_layer(void)
int type;
char *name;
- D("Loading one layer ...\n");
- /* read in the layer width, height and type */
- image->cp += xcf_read_int32(image->file, (DATA32 *)&width, 1);
- image->cp += xcf_read_int32(image->file, (DATA32 *)&height, 1);
- image->cp += xcf_read_int32(image->file, (DATA32 *)&type, 1);
- image->cp += xcf_read_string(image->file, &name, 1);
- /* ugly, I know */
- FREE(name);
-
- /* create a new layer */
- layer = new_layer(width, height, type, 255, NORMAL_MODE);
- if (!layer) return NULL;
+ D("Loading one layer ...\n");
+ /* read in the layer width, height and type */
+ image->cp += xcf_read_int32(image->file, (DATA32 *)&width, 1);
+ image->cp += xcf_read_int32(image->file, (DATA32 *)&height, 1);
+ image->cp += xcf_read_int32(image->file, (DATA32 *)&type, 1);
+ image->cp += xcf_read_string(image->file, &name, 1);
+ /* ugly, I know */
+ FREE(name);
+
+ /* create a new layer */
+ layer = new_layer(width, height, type, 255, NORMAL_MODE);
+ if (!layer) return NULL;
/* read in the layer properties */
if (!xcf_load_layer_props(layer)) goto error;