summaryrefslogtreecommitdiffstats
path: root/examples/blockStreaming_ringBuffer.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-09-11 17:25:47 (GMT)
committerYann Collet <cyan@fb.com>2017-09-11 17:25:47 (GMT)
commit810e2ca27b3561e0f6bfa7a88e0fde6faf807064 (patch)
treed6944102061953ea64aa04601cc8925e0051a03f /examples/blockStreaming_ringBuffer.c
parente5bd29a2fb019ddd19f9817ba701733552afbdbd (diff)
downloadlz4-810e2ca27b3561e0f6bfa7a88e0fde6faf807064.zip
lz4-810e2ca27b3561e0f6bfa7a88e0fde6faf807064.tar.gz
lz4-810e2ca27b3561e0f6bfa7a88e0fde6faf807064.tar.bz2
minor improvements to examples
cosmetic : better display added optional variable MOREFLAGS
Diffstat (limited to 'examples/blockStreaming_ringBuffer.c')
-rw-r--r--examples/blockStreaming_ringBuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/blockStreaming_ringBuffer.c b/examples/blockStreaming_ringBuffer.c
index 40109b5..dec78af 100644
--- a/examples/blockStreaming_ringBuffer.c
+++ b/examples/blockStreaming_ringBuffer.c
@@ -6,7 +6,7 @@
* Compiler Options
**************************************/
#ifdef _MSC_VER /* Visual Studio */
-# define _CRT_SECURE_NO_WARNINGS // for MSVC
+# define _CRT_SECURE_NO_WARNINGS
# define snprintf sprintf_s
#endif
@@ -24,7 +24,7 @@
enum {
MESSAGE_MAX_BYTES = 1024,
RING_BUFFER_BYTES = 1024 * 8 + MESSAGE_MAX_BYTES,
- DECODE_RING_BUFFER = RING_BUFFER_BYTES + MESSAGE_MAX_BYTES // Intentionally larger, to test unsynchronized ring buffers
+ DECODE_RING_BUFFER = RING_BUFFER_BYTES + MESSAGE_MAX_BYTES /* Intentionally larger, to test unsynchronized ring buffers */
};
@@ -138,7 +138,7 @@ int main(int argc, char** argv)
char lz4Filename[256] = { 0 };
char decFilename[256] = { 0 };
- if(argc < 2) {
+ if (argc < 2) {
printf("Please specify input filename\n");
return 0;
}
@@ -176,7 +176,7 @@ int main(int argc, char** argv)
FILE* const decFp = fopen(decFilename, "rb");
const int cmp = compare(inpFp, decFp);
- if(0 == cmp) {
+ if (0 == cmp) {
printf("Verify : OK\n");
} else {
printf("Verify : NG\n");