diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-15 05:23:15 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-15 05:23:15 +0000 |
commit | 0a0699aba70c04e3e6c5847b47cee75025e96255 (patch) | |
tree | 1f56669779fd2d69b6802b9eae52ee89a20bc381 /idea.c | |
parent | 991b62808450c54ac721f345d82426fde3e6289f (diff) |
Use stdbool.h, bool, true, false instead of manually defining
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@60 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
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 |