summaryrefslogtreecommitdiff
path: root/shim.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2020-12-02 14:01:10 -0500
committerPeter Jones <pjones@redhat.com>2021-02-13 11:02:59 -0500
commitdea41d4c2720e94bae3db17e03b806154fe1c48f (patch)
tree095ea916eee3c0d500f4238e226b029666413144 /shim.h
parent06e98a10f639ba53201876f2ff9fbd468bfa8189 (diff)
downloadefi-boot-shim-dea41d4c2720e94bae3db17e03b806154fe1c48f.tar.gz
efi-boot-shim-dea41d4c2720e94bae3db17e03b806154fe1c48f.zip
Refactor some PE handling code
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.h')
-rw-r--r--shim.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shim.h b/shim.h
index 01622299..41963ecf 100644
--- a/shim.h
+++ b/shim.h
@@ -228,4 +228,7 @@ verify_buffer (char *data, int datasize,
#define LogError(fmt, ...) \
LogError_(__FILE__, __LINE__ - 1, __func__, fmt, ##__VA_ARGS__)
+#define MIN(a, b) (((a) <= (b))?(a):(b))
+#define MAX(a, b) (((a) <= (b))?(b):(a))
+
#endif /* SHIM_H_ */