diff options
Diffstat (limited to 'utils/rknanoutils/rkboottool/misc.c')
-rw-r--r-- | utils/rknanoutils/rkboottool/misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/rknanoutils/rkboottool/misc.c b/utils/rknanoutils/rkboottool/misc.c index b8644b3bf8..108235e7fd 100644 --- a/utils/rknanoutils/rkboottool/misc.c +++ b/utils/rknanoutils/rkboottool/misc.c | |||
@@ -34,6 +34,13 @@ char BLUE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '4', 0x6d, '\0' }; | |||
34 | 34 | ||
35 | static bool g_color_enable = true; | 35 | static bool g_color_enable = true; |
36 | 36 | ||
37 | void *xmalloc(size_t s) | ||
38 | { | ||
39 | void * r = malloc(s); | ||
40 | if(!r) bugp("malloc"); | ||
41 | return r; | ||
42 | } | ||
43 | |||
37 | void enable_color(bool enable) | 44 | void enable_color(bool enable) |
38 | { | 45 | { |
39 | g_color_enable = enable; | 46 | g_color_enable = enable; |