From 29a4a9f1056fd4cc319c248c2e062cd91f6fa9f2 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:45:07 -0700 Subject: common: Move hang() to the same header as panic() At present panic() is in the vsprintf.h header file. That does not seem like an obvious choice for hang(), even though it relates to panic(). So let's put hang() in its own header. Signed-off-by: Simon Glass [trini: Migrate a few more files] Signed-off-by: Tom Rini --- examples/api/libgenwrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/api') diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c index 67b2d641fc7..769dcc70385 100644 --- a/examples/api/libgenwrap.c +++ b/examples/api/libgenwrap.c @@ -10,6 +10,7 @@ */ #include +#include #include #include @@ -41,7 +42,7 @@ void *malloc (size_t len) return NULL; } -void hang (void) +void hang(void) { while (1) ; } -- cgit v1.2.3