diff options
Diffstat (limited to 'idea.c')
-rw-r--r-- | idea.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <stdint.h> +#include <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> @@ -72,7 +73,7 @@ DoIDEA(void) IDEAkey Z, DK; uint16_t userkey[8]; int i; - static int is_adjusted = FALSE; + static bool is_adjusted = false; static int loops = 100; randnum(3); @@ -131,8 +132,8 @@ DoIDEA(void) /* ** See if we need to perform self adjustment loop. */ - if (is_adjusted == FALSE) { - is_adjusted = TRUE; + if (is_adjusted == false) { + is_adjusted = true; /* ** Do self-adjustment. This involves initializing the ** # of loops and increasing the loop count until we |