summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lottery.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/libreboot-utils/lottery.c')
-rw-r--r--util/libreboot-utils/lottery.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c
index fd0728fd..cbe8a871 100644
--- a/util/libreboot-utils/lottery.c
+++ b/util/libreboot-utils/lottery.c
@@ -11,6 +11,9 @@
#include "include/common.h"
static void
+exit_cleanup(void);
+
+static void
spew_buf(const void *data, size_t len);
int
@@ -22,6 +25,8 @@ main(int argc, char **argv)
(void) argc, (void) argv;
xpledgex("stdio", NULL);
+ (void) errhook(exit_cleanup);
+
buf = mkrbuf(BUFSIZ + 1);
if (!memcmp(buf, buf + (BUFSIZ >> 1), BUFSIZ >> 1))
same = 1;
@@ -73,3 +78,9 @@ spew_buf(const void *data, size_t len)
printf("%08zx\n", len);
}
+
+static void
+exit_cleanup(void)
+{
+ return;
+}