dummyflasher.c: Retype appropriate variables and attributes with bool

Use the bool type instead of an integer for appropriate variables and
attributes, since this represents their purpose much better.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: I712b1ef7e1ad74d3e004dcf36c82898c88072c63
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/66901
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71489
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/dummyflasher.c b/dummyflasher.c
index e4b7bc0..72d0259 100644
--- a/dummyflasher.c
+++ b/dummyflasher.c
@@ -15,6 +15,7 @@
 
 #include <assert.h>
 #include <string.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
@@ -47,7 +48,7 @@
 	 *       WRSR code on enabling WRSR_EXT2 for more chips. */
 	bool emu_wrsr_ext2;
 	bool emu_wrsr_ext3;
-	int emu_modified;	/* is the image modified since reading it? */
+	bool emu_modified;	/* is the image modified since reading it? */
 	uint8_t emu_status[3];
 	uint8_t emu_status_len;	/* number of emulated status registers */
 	unsigned int emu_max_byteprogram_size;
@@ -678,7 +679,7 @@
 	}
 
 	memcpy(data->flashchip_contents + start, buf, len);
-	data->emu_modified = 1;
+	data->emu_modified = true;
 	return 0;
 }
 
@@ -691,7 +692,7 @@
 	}
 
 	memset(data->flashchip_contents + start, 0xff, len);
-	data->emu_modified = 1;
+	data->emu_modified = true;
 	return 0;
 }