From 4524ecba1afcd8efa2b4ac1d148dd9765551bd49 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 11 Apr 2015 10:53:07 -0700 Subject: [PATCH] specify booleans --- main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 6ca39b4..e438e54 100644 --- a/main.c +++ b/main.c @@ -5,6 +5,8 @@ #include "crc32.c" #include "args.c" +typedef int bool; + #ifndef BUFFER_SIZE #define BUFFER_SIZE 4096 #endif @@ -19,11 +21,11 @@ struct string_node_s { static string_node *input_node = NULL; static uint32_t starting = 0xFFFFFFFF; -static char big_endian = 0; +static bool big_endian = 0; static uint32_t polynomial = 0x04C11DB7; -static char print_binary = 0; -static char xor_output = 1; -static char reflect_output = 0; +static bool print_binary = 0; +static bool xor_output = 1; +static bool reflect_output = 0; static const char help1[] = "\ crc32 - a 32-bit cyclic rendundancy check calculator\n\