Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/librfxcodec.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2017-01-22 11:49:18 +0300
committerjsorg71 <jay.sorg@gmail.com>2017-02-04 10:50:57 +0300
commite06593e27969c419930fe811a0da3b05ade58271 (patch)
tree63b9b49c29af68e30df932bc6a803211f323f2fb /tests
parent60cd4a14986f31c8b4af617a598d01d896de9d6d (diff)
Fix formatting to match coding standards
Diffstat (limited to 'tests')
-rw-r--r--tests/rfxcodectest.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/rfxcodectest.c b/tests/rfxcodectest.c
index 687cb54..4d20be2 100644
--- a/tests/rfxcodectest.c
+++ b/tests/rfxcodectest.c
@@ -238,7 +238,7 @@ load_bmp_file(int in_fd, char **data, int *width, int *height)
free(line);
- return 0;
+ return 0;
}
/******************************************************************************/
@@ -305,7 +305,7 @@ encode_file(char *data, int width, int height, char *cdata, int *cdata_bytes,
free(tiles);
- return 0;
+ return 0;
}
/******************************************************************************/
@@ -330,7 +330,7 @@ read_file(int count, const char *quants, int num_quants,
out_fd = -1;
if (out_file[0] != 0)
{
- if (access(out_file, F_OK) == 0)
+ if (access(out_file, F_OK) == 0)
{
printf("out files exists\n");
return 1;
@@ -360,10 +360,10 @@ read_file(int count, const char *quants, int num_quants,
return 1;
}
printf("encode data ok bytes %d\n", cdata_bytes);
-
+
if (out_fd != -1)
{
- if (write(out_fd, cdata, cdata_bytes) != cdata_bytes)
+ if (write(out_fd, cdata, cdata_bytes) != cdata_bytes)
{
printf("write failed\n");
}
@@ -376,7 +376,7 @@ read_file(int count, const char *quants, int num_quants,
{
close(out_fd);
}
- return 0;
+ return 0;
}
/******************************************************************************/
@@ -449,5 +449,5 @@ main(int argc, char **argv)
{
read_file(count, quants, 2, in_file, out_file);
}
- return 0;
+ return 0;
}