summaryrefslogtreecommitdiff
path: root/util/nvramtool/common.c
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2020-01-11 01:26:54 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-03-10 20:23:39 +0000
commit79f7fcc92785c1bb50f1ee22f4adc9c6f3c0fee4 (patch)
tree7ffba70e94527bcb5facfda6ab854a3ef2e7758d /util/nvramtool/common.c
parentb8634685337b3730f474953e07fe9afd4f94007e (diff)
util/nvramtool: fix building on OpenBSD
OpenBSD's gcc 4.2.1 doesn't know about _Noreturn Change-Id: Ie9e1885c483941d3d0ce8c8948af53f1ef8bb5db Signed-off-by: Evgeny Zinoviev <me@ch1p.io> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38348 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Idwer Vollering <vidwer@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/nvramtool/common.c')
-rw-r--r--util/nvramtool/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvramtool/common.c b/util/nvramtool/common.c
index 9b0a6b95ba..5dfc3bd99c 100644
--- a/util/nvramtool/common.c
+++ b/util/nvramtool/common.c
@@ -56,7 +56,7 @@ int get_line_from_file(FILE * f, char line[], int line_buf_size)
*
* We ran out of memory. Print an error message and die.
****************************************************************************/
-_Noreturn void out_of_memory(void)
+noreturn void out_of_memory(void)
{
fprintf(stderr, "%s: Out of memory.\n", prog_name);
exit(1);