summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index d669512..b41c281 100644
--- a/flash.h
+++ b/flash.h
@@ -253,8 +253,11 @@ int doit(struct flashctx *flash, int force, const char *filename, int read_it, i
int read_buf_from_file(unsigned char *buf, unsigned long size, const char *filename);
int write_buf_to_file(unsigned char *buf, unsigned long size, const char *filename);
-#define OK 0
-#define NT 1 /* Not tested */
+enum test_state {
+ OK = 0,
+ NT = 1, /* Not tested */
+ BAD
+};
/* Something happened that shouldn't happen, but we can go on. */
#define ERROR_NONFATAL 0x100
OpenPOWER on IntegriCloud